[closed] Re: Using options in XSLT match patterns

/ 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,
                                          norm

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