XSLT matches() function not found

leteereLups

New Member
I am writing an XSLT transformation in which I wish to use the matches function to do a regex match and replace.Visual Studio 2008 that 'matches ()' is an unknown XSLT function.\[code\]<xsl:when test="matches(normalize-space(.),'^([(]I[)])(.+)')"> <xsl:analyze-string select="normalize-space(.)" regex="^^([(]I[)])(.+)" flags="x"> <xsl:matching-substring> <xsl:variable name="paraNumber"> <xsl:value-of select="regex-group(1)"/> </xsl:variable> <xsl:variable name="text"> <xsl:value-of select="regex-group(2)"/> </xsl:variable> <span class="upper-I-double-bracket"> <xsl:value-of select="$paraNumber"/> </span> <xsl:value-of select="$text"/> </xsl:matching-substring> </xsl:analyze-string> </xsl:when>\[/code\]
 
Back
Top