2
0

class-index-html.xsl 1.1 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  3. <xsl:variable name="src-xref-base">http://static.springframework.org/spring-security/site/xref/</xsl:variable>
  4. <xsl:variable name="ref-man-base">http://static.springframework.org/spring-security/site/reference/html/</xsl:variable>
  5. <xsl:template match="index">
  6. <html>
  7. <body>
  8. <h1>Class and Interface Index</h1>
  9. <xsl:apply-templates />
  10. </body>
  11. </html>
  12. </xsl:template>
  13. <xsl:template match="class">
  14. <h3><xsl:value-of select="@name"/></h3>
  15. <xsl:if test="@src-xref">
  16. <p><xsl:element name="a"><xsl:attribute name="href"><xsl:value-of select="concat($src-xref-base, @src-xref)"/></xsl:attribute>Source</xsl:element></p>
  17. </xsl:if>
  18. <xsl:for-each select="link">
  19. <p><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></p>
  20. </xsl:for-each>
  21. </xsl:template>
  22. </xsl:stylesheet>