index-classes.xsl 642 B

12345678910111213141516171819
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xsl:stylesheet
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:db="http://docbook.org/ns/docbook">
  4. <xsl:output method="text"/>
  5. <xsl:template match="db:interfacename|db:classname">
  6. <xsl:variable name="classname" select="."/>
  7. <xsl:for-each select="ancestor::*[@xml:id][1]">
  8. <xsl:variable name="title" select="db:info/db:title|db:title"/>
  9. <xsl:value-of select="concat($classname, ':', @xml:id, ':', $title,';')"/>
  10. </xsl:for-each>
  11. </xsl:template>
  12. <xsl:template match="text()|@*|*">
  13. <xsl:apply-templates/>
  14. </xsl:template>
  15. </xsl:stylesheet>