1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
   | <xsl:stylesheet version="1.0"
                        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                        xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                        xmlns:regexp="http://exslt.org/regular-expressions" > 
 
<xsl:output method="html" indent="yes" />
 
<xsl:template match="/">
<html><body>
 
     <xsl:for-each select="regExp:match('http://www.bayes.co.uk/xml/index.xml?/xml/utils/rechecker.xml', 
                                   '(\w+):\/\/([^/:]+)(:\d*)?([^# ]*)')">
        Part <xsl:value-of select="position()" /> = <xsl:value-of select="." />
     </xsl:for-each>	
 
</body></html>
</xsl:template>
</xsl:stylesheet> | 
Partager