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

Re: Simple syntax

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Wed, 12 Apr 2006 08:28:52 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87bqv7ou4b.fsf@nwalsh.com>
/ Jeni Tennison <jeni@jenitennison.com> was heard to say:
| I like the idea of hiding fundamental components such as "load",
| "save", "tee" and "identity" from users as much as possible.

So do I.

| For the sake of simplicity, perhaps a shorthand for the save component could be
| to have an optional href attribute on <p:output>, and a save attribute that
| defaults to true if the href attribute is present.

What's the save attribute for? What would this mean?

  <p:output name="document" label="doc1" href="doc.xml" save="no"/>

Are you thinking of the case where some later component does an
xinclude of doc.xml but you don't actually ever want to serialize it?

| Having default input/output
| names might also make defining pipelines a bit less tedious. In other words:

Indeed. It seems reasonable to allow an href attribute to be a
shorthand for the load and save components.

If two (or more) steps use the same input, can we assume the pipeline
engine will be able to infer the tees?

I would like it to be the case that pipeline analysis occurs
(conceptually) in the following stages:

1. Conversion to the XML syntax (if we define a compact syntax)
2. Expansion of shorthands (producing a new, valid pipeline with no
   shortcuts.
3. Detection of static errors.
4. Evaluation of the pipeline

But I'm content to visit the question of what shorthands we support,
and how, until we've got a better handle on the actual language.

                                        Be seeing you,
                                          norm

-- 
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 Wednesday, 12 April 2006 12:28:57 GMT

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