Project

Profile

Help

Bug #2419 » quote.xsl

Octavian Nadolu, 2015-07-22 11:05

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="quote">
<xsl:if test="para[matches(string-join(text(),' ') , '^(\S+[\s,]*)+\d{4}')]">
<xsl:message>The test passed</xsl:message>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
(1-1/2)