W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > July 2007

Re: Serialization

From: Alessandro Vernet <avernet@orbeon.com>
Date: Fri, 6 Jul 2007 10:17:21 -0700
Message-ID: <4828ceec0707061017w62fa2ee9p9b97f09db6b44f8@mail.gmail.com>
To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>

On 7/3/07, Norman Walsh <ndw@nwalsh.com> wrote:
> The use case I think Alex wants to support, and I'm symphathetic, is
> the analog of the XSLT case where a serialized HTML document is
> produced on stdout.

What happens to the output of a pipeline? Who decides what happens
with this data? I can see 2 cases:

1) The pipeline decides
2) The caller of the pipeline decides

In #1, the pipeline uses a step at the "end" of the pipeline to
serialize the data, say to stdout, or to a file, or to an HTTP
response. In #2, the caller (another pipeline, the command line
program) does that serialization.

I am not convinced we need to make the language more complex to
support a case that would be between #1 and #2, where the pipeline
decides how the data is serialized, but leaves the caller to decide
where it is serialized.

> If you wrap that stylesheet in a pipeline, you'll get an XML document
> From the XSLT step, not an HTML one. In order to add a store step,
> you'll have to say where it should be stored.

I realize that this is something we have in XSLT. My guess is that
this was added to XSLT when it was imagined that XSLT would be used in
browsers, and the browser would directly do the transformation and
serialization to (X)HTML. So it was important to able to specify both
in the same file. I feel things have changed, and that nowadays it
makes more sense to keep transformation and serialization separate.

Coming back to the command line use case, we don't need to make the
language more complex just for this: instead of specifying how data is
to be serialized in the pipeline, this could be done on the command
line, with parameters that mimic the attributes of <xsl:output>.

Alex
-- 
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/
Received on Friday, 6 July 2007 17:17:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:53 GMT