Project

Profile

Help

Bug #3429 » regex_min.xsl

Stefan Pöschel, 2017-09-06 16:43

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="/">
<unit>
<!-- extract just the unit -->
<xsl:value-of select="replace('10%', '^\d*\.?\d+', '')"/>
</unit>
</xsl:template>
</xsl:stylesheet>
    (1-1/1)