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

Re: Alternative to x!y (proposal)

From: Murray Maloney <murray@muzmo.com>
Date: Fri, 25 Aug 2006 23:21:37 -0400
Message-Id: <>
To: public-xml-processing-model-wg@w3.org

I missed this discussion because I was away on business w/o a laptop.
I'm glad that I got to read it in one go because it made it easier for me
to see what was bugging me about where y'all are going with this.

I'd like to make two comments.

1.) Let's not try to "decide" on naming of attributes just yet.
Assuming that we use two attributes, we only need placeholder
names for now. We can/should decide final names later.

2) If we do use two attributes, then this element is starting to look weird 
to me.

	<p:input port="document"     href="http://example.com/input.xml"/>
	<p:input port="document"     step="step"              source="result"/>
	<p:input port="document">
		<here:document>Here document</here:document>

Well, to save us from having to explain:

	<p:input port="document" href="http://example.com/input.xml" step="step" 
		<here:document>Here document</here:document>

I would prefer that we make these three different elements, or use nested 

	<p:input port="document">
		<p:include      href="http://example.com/input.xml"/>
or	<p:input port="document">
		<p:from         step="step"              output="result"/>			
or	<p:input port="document">
		<p:here>Here document</p:here>

Of course, we can name these elements/attributes appropriately later.
And we can use these same child elements on declare-[in|out]put.

I know that it is a lot of extra syntax to achieve what could be encoded
more succinctly. But my guess is that it would be easier to write the
handlers for these four elements than it would be for that one that y'all
are talking about now. Of course, I am not an implementor so I could
be wrong about that. But it sure seems like it would be easier to explain
the constraints on sub-elements than co-constraints on attributes, and
existing schema languages can describe sub-element constraints, whereas
the attribute co-constraints cannot be so described.

Just a couple of thoughts.


Received on Saturday, 26 August 2006 03:22:57 UTC

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