W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > February 2008

Re: A few items cherry-picked from comment #54 - proposal for p:label-elements

From: Alex Milowski <alex@milowski.org>
Date: Thu, 7 Feb 2008 07:52:33 -0800
Message-ID: <28d56ece0802070752j2d6a104vbcb8b5ae0a0af766@mail.gmail.com>
To: public-xml-processing-model-comments@w3.org

On 2/7/08, Nikolay Fiykov <nikolay.fiykov@nsn.com> wrote:
> About the context node:
> Is there any reason why this won't be actually "any XPath" expression on
> top of the input document rather than the context node?
> This would limit the applicable use cases to only trivial ones.
> Optimization wishes would still be valid, the processor can determine
> whether this is context node, document or none of them in the same way.

The context node has to be the matched element.  That allows you to have
simple expressions like computing the label from attributes present on
the matched element.

That does not limit the XPath expression.  The XPath expression that you
provide in the 'label' option is not limited at all.

> About the replacing the value if present:
> Can this be configurable option in form of true/false?

Certainly possible.  If false, it must either be ignored or an error.
I'd vote for

The default should be 'true' (replace the value).

--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

Bertrand Russell in a footnote of Principles of Mathematics
Received on Thursday, 7 February 2008 15:52:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:25 UTC