[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xslt 2.0 regex
On 2012-03-17 14:37, davep wrote:
<xsl:variable name='Name.re' select='concat($NameStartChar.re, "(", $NameChar.re,")*")'/> Is $Name.re supposed to match the entire @select attribute value, from start to end? Then anchoring the regex at the start/end of the string will help: <xsl:if test="matches(@select, concat('^', $Name.re, '$'),'x') "> or alternatively <xsl:variable name='Name.re' select='concat("^", $NameStartChar.re, "(", $NameChar.re,")*$")'/>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|