Re: Serialization Analysis and Proposal

/ 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.

Is that right?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Our years, our debts, and our enemies
http://nwalsh.com/            | are always more numerous than we
                              | imagine.--Charles Nodier

Received on Wednesday, 16 May 2007 14:45:48 UTC