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

[closed] Re: Using options in XSLT match patterns

From: Norman Walsh <ndw@nwalsh.com>
Date: Wed, 16 Apr 2008 10:16:15 -0400
To: public-xml-processing-model-comments@w3.org
Message-ID: <m24pa1lwb4.fsf@nwalsh.com>
/ Toman_Vojtech@emc.com was heard to say:
| 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>

No, I don't expect this to work. However, you can get the result you
want by simply doing the interpolation yourself:

   <p:option name="match" value="*[not(starts-with(@id, 'foo_'))]">

                                        Be seeing you,

Norman Walsh <ndw@nwalsh.com> | It is good to have an end to journey
http://nwalsh.com/            | toward; but it is the journey that
                              | matters, in the end.--Ursula K. LeGuin

Received on Wednesday, 16 April 2008 14:16:50 UTC

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