EXSLT - regexp:match - Use Case 1

Category: example
XML Definition: regexp.match.xml
Function or Template: function

Use Case

Source (view)

<?xml-stylesheet type="text/xsl" href="regexp.match.1.xsl"  ?>
<a>
   <c>Is this EXSLT? No. no</c>
</a>

Stylesheet (view)

<xsl:import href="regexp.match.msxsl.xsl" />
<xsl:template match="c">
   <out>
      <xsl:value-of select="." />
 - 
               <xsl:for-each select="regexp:match(., 'no', 'gi')">
         <xsl:value-of select="." />
      </xsl:for-each>
   </out>
</xsl:template>

Result (view)

<out>Is this EXSLT? No. no - 
         Nono</out>

Change History

Previous Version: ..NaN.html

VersionModifiedByDetails
2001-06-24Chris Bayes

http://www.exslt.org/regexp/functions/match/regexp.match.use-case.1.html last modified 2001-06-24