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

Re: Directed vs Generic Syntax

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Thu, 13 Apr 2006 12:18:58 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <873bghbg99.fsf@nwalsh.com>
/ Alex Milowski <alex@milowski.org> was heard to say:
| Taking the following example from Jeni Tennison's email:
| This means the pipeline compiler needs to understand each directed
| syntax--including extension steps.  While this adds to the implementors
| work, I think the end result is far simpler for the user.

But it makes it much more difficult for a pipeline to contain
additional elements that can be safely ignored (extensions or
documentation, for example).

I don't see any semantic distinction between this:

  <p:step name="p:xslt">
    <p:input select="$document" />
    <p:input name="stylesheet" href="foo.xsl" />
    <p:output href="result.xml" />

and this:

  <p:xslt input="$document" stylesheet="foo.xsl"

except that you've obscured the inputs and outputs from the point of
view of a reader and you've reduced the number of characters that have
to be typed a little bit.

After some consideration, I think I prefer <p:step name="p:xslt"> to
<p:xslt> and I am confident that I prefer <p:input> and <p:ouput> over
attributes. For one thing, it means that I can do this:

  <p:step name="p:xslt">
    <p:input name="document">
       <p>Some data</p>

                                        Be seeing you,

Norman.Walsh@Sun.COM / XML Standards Architect / Sun Microsystems, Inc.
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

Received on Thursday, 13 April 2006 16:19:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:39 UTC