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

Using options in XSLT match patterns

From: <Toman_Vojtech@emc.com>
Date: Wed, 30 Jan 2008 05:25:53 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC78709971B8D@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>

Hi all,

I wonder if options can be referred to in XSLT match patterns that are
used on some types of steps (such as p:delete or p:label-elements). The
specification is not clear on this, so I wonder if the following is
legal:

<p:label-elements>
  <p:option name="prefix" value="foo_">
  <p:option name="match" value="*[not(starts-with(@id, $prefix))]">
</p:label-elements>

I think this would be a useful feature. I can imagine you may want to be
able to select nodes based on some dynamic value. 

Regards,
Vojtech

--
Vojtech Toman
Principal Software Engineer
EMC Corporation

Aert van Nesstraat 45
3012 CA Rotterdam
The Netherlands

Toman_Vojtech@emc.com
Received on Wednesday, 30 January 2008 10:28:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2008 10:28:39 GMT