Project

Profile

Help

Bug #2352 ยป regextest.xslt

Pieter Masereeuw, 2015-04-06 10:22

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">
<xsl:template match="/">
<regextest>
<javaregex>
<xsl:value-of select="replace('JAVA: test testje megatest TEST', '\b(test)\b', 'success', 'i;j')"/>
<xsl:value-of select="tokenize('aap noot xnooty mies', '\bnoot\b', ':j')"></xsl:value-of>
</javaregex>
<dotnetregex>
<!--<xsl:value-of select="replace('DOTNET: test testje megatest TEST', '\b(test)\b', 'success', 'i;n')"/>-->
<!--<xsl:value-of select="tokenize('aap noot xnooty mies', '\bnoot\b', ':n')"></xsl:value-of>-->
</dotnetregex>
</regextest>
</xsl:template>
</xsl:stylesheet>
    (1-1/1)