[xsl] Regular expressions in XSLT 2

Subject: [xsl] Regular expressions in XSLT 2
From: "tom tom" <tomxsllist@xxxxxxxxxxx>
Date: Wed, 06 Jun 2007 15:18:40 +0100
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?


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

Current Thread