code_junkie

RegExp in XSLT

Nov 12th, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <doc>
  2. <members>
  3. <member name="F:MyNamespace">
  4. <summary>Some text</summary>
  5. </member>
  6. </members>
  7. </doc>
  8.  
  9. <?xml version="1.0" encoding="utf-8"?>
  10. <xsl:stylesheet
  11. version="1.0"
  12. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  13. xmlns:fn="http://www.w3.org/TR/xpath-functions/"
  14. >
  15. <xsl:template match="/" >
  16. <html xmlns="http://www.w3.org/1999/xhtml">
  17. <body style="font-family:Tahoma">
  18. <p>Interfaces list:</p>
  19. <table>
  20. <xsl:for-each select="doc/members/member">
  21. <xsl:sort order="ascending" />
  22. <xsl:value-of select="fn:matches(., 'P..+')" />
  23. <br />
  24. </xsl:for-each>
  25. </table>
  26. </body>
  27. </html>
  28. </xsl:template>
  29. </xsl:stylesheet>
Add Comment
Please, Sign In to add comment