Re: Serialization Analysis and Proposal

OK It's kind of magic but....What do we do with namespace fixup ?

Mohamed

On 5/16/07, Alex Milowski <alex@milowski.org> wrote:
>
> On 5/16/07, Norman Walsh <ndw@nwalsh.com> wrote:
> > / Alessandro Vernet <avernet@orbeon.com> was heard to say:
> > [...]
> > | So instead of having serialization options on all those components, we
> > | created one component that does XML serialization into an XML document
> > | with just a root element. We called this a converter. And all the
> > | components work with this pre-serialized form.
> >
> > So, let me see if I understand. If we called it p:serialize then
> > this step:
> >
> > <p:serialize>
> >   <p:input port="source">
> >     <p:inline>
> >       <html xmlns="http://www.w3.org/1999/xhtml">
> >         <head>
> >           <title>Some Title</title>
> >         </head>
> >         <body>
> >         <h1>Some <br/>Title</h1>
> >         </body>
> >       </html>
> >     </p:inline>
> >   </p:input>
> >   <p:option name="method" value="html"/>
> > </p:serialize>
> >
> > would produce something like:
> >
> > <c:serialized-form>&lt;!DOCTYPE html PUBLIC "..." "..."&gt;
> > &lt;html&gt;
> >         &lt;head&gt;
> >           &lt;title&gt;Some Title&lt;/title&gt;
> >         &lt;/head&gt;
> >         &lt;body&gt;
> >         &lt;h1&gt;Some &lt;br&gt;Title&lt;/h1&gt;
> >         &lt;/body&gt;
> >       &lt;/html&gt;</c:serialized-form>
> >
> > And the p:store, p:http-request, etc. components would all treat an
> > input document with a root element of c:serialized-form in a special
> > way.
> >
>
> Why wouldn't we use p:escape-markup (which was called p:serialize) and
> just allow it to escape the document?  We would have to add an option
> for the document element wrapper name.
>
> I've already mentioned that we need to add serialization options to
> this step anyway.
>
> --
> --Alex Milowski
> "The excellence of grammar as a guide is proportional to the paucity of the
> inflexions, i.e. to the degree of analysis effected by the language
> considered."
>
> Bertrand Russell in a footnote of Principles of Mathematics
>
>


-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 8 72 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €

Received on Wednesday, 16 May 2007 15:56:45 UTC