- From: Alex Milowski <alex@milowski.org>
- Date: Thu, 24 May 2007 16:16:02 -0700
- To: public-xml-processing-model-wg@w3.org
On 5/24/07, Norman Walsh <ndw@nwalsh.com> wrote:
> |
> | 4. We allow the name to be set from a expression (syntax to
> | be "discussed):
> |
> | <p:parameters match="/params/param" name="@name" select="@value"/>
>
> I don't understand this step at all.
Right now we allow:
<p:parameter
name = QName
select? = XPath expression>
(p:pipe |
p:document |
p:inline)
</p:parameter>
That allows you to bind a named parameter to a value from a document.
I'm suggesting we allow something like:
<p:parameters
match = XPath expression
name = XPath expression
select? = XPath expression>
(p:pipe |
p:document |
p:inline)
</p:parameters>
That allows you to bind an arbitrary number of parameters from
a document where the name of the parameter is an expression
calculated from the document just like the parameter value.
This element would be allowed inside steps as a sibling of p:parameter.
The semantics would be that you match a number of elements in the
the source and for each of those matching elements you evaluate
the 'name' and 'select' expression to get the name/value pair for the
parameter.
--
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."
Bertrand Russell in a footnote of Principles of Mathematics
Received on Thursday, 24 May 2007 23:16:12 UTC