xsl-list
[Top] [All Lists]

[xsl] Regular expressions in XSLT 2

2007-06-06 07:19:02
I need to create a key that matches on any <t/> element and uses a substring that exists within an xml:id attribute after the first '_' and before the final group of numbers. For example

<t xml:id="tr_165_promo3650"/>

Would be held in the key

<xsl:key name="O" match="//t" use="{?????????????}"/>

and referenced with

key('O', '165_promo')

Can anyone advise on the best way to do this in XSLT 2?

Thanks

_________________________________________________________________
Play your part in making history - Email Britain! http://www.emailbritain.co.uk/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>