class-index-html.xsl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  3. <!-- Run with xsltproc class-index-html.xsl classindex.xml > class-index.html -->
  4. <xsl:variable name="src-xref-base">http://static.springsource.org/spring-security/site/docs/3.0.x/apidocs/</xsl:variable>
  5. <xsl:variable name="ref-man-base">http://static.springsource.org/spring-security/site/docs/3.0.x/reference/</xsl:variable>
  6. <xsl:template match="index">
  7. <html>
  8. <head>
  9. <title>Spring Security Class and Interface Index</title>
  10. </head>
  11. <body>
  12. <h2>Class and Interface Index</h2>
  13. <p>An list of classes and interfaces used in Spring Security with links to the sections in the Spring Security manual which
  14. refer to them.</p>
  15. <div id="classindex">
  16. <xsl:apply-templates />
  17. </div>
  18. </body>
  19. </html>
  20. </xsl:template>
  21. <xsl:template match="class">
  22. <div class="index-class">
  23. <xsl:choose>
  24. <xsl:when test="@src-xref">
  25. <h4><xsl:element name="a"><xsl:attribute name="href"><xsl:value-of select="concat($src-xref-base, @src-xref)"/></xsl:attribute><xsl:value-of select="@name"/></xsl:element></h4>
  26. </xsl:when>
  27. <xsl:otherwise>
  28. <h4><span class="classname"><xsl:value-of select="@name"/></span></h4>
  29. </xsl:otherwise>
  30. </xsl:choose>
  31. <table>
  32. <xsl:for-each select="link">
  33. <tr><td><xsl:element name="a"><xsl:attribute name="href"><xsl:value-of select="concat($ref-man-base, @href)"/></xsl:attribute><xsl:value-of select="@title"/></xsl:element></td>
  34. </tr>
  35. </xsl:for-each>
  36. </table>
  37. </div>
  38. </xsl:template>
  39. </xsl:stylesheet>