| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 3 |
xmlns:a="http://docbook.org/ns/docbook" |
| 4 |
exclude-result-prefixes="a" |
| 5 |
version="1.0"> |
| 6 |
<xsl:output encoding="utf-8"/> |
| 7 |
|
| 8 |
|
| 9 |
<xsl:template match="node()|@*"> |
| 10 |
<xsl:copy> |
| 11 |
<xsl:apply-templates select="node()|@*"/> |
| 12 |
</xsl:copy> |
| 13 |
</xsl:template> |
| 14 |
|
| 15 |
<xsl:template match="a:refsynopsisdiv"> |
| 16 |
<xsl:for-each select=".//a:symbol"> |
| 17 |
<xsl:element name="indexterm"> |
| 18 |
<xsl:attribute name="type">cl</xsl:attribute> |
| 19 |
<primary><xsl:value-of select="."/></primary> |
| 20 |
</xsl:element> |
| 21 |
</xsl:for-each> |
| 22 |
<xsl:for-each select=".//a:funcsynopsis//a:function| |
| 23 |
.//a:synopsys//a:type| |
| 24 |
.//a:synopsys//a:variable| |
| 25 |
.//a:synopsys//a:constant"> |
| 26 |
<xsl:if test="string-length(attribute::role)=0"> |
| 27 |
<xsl:element name="indexterm"> |
| 28 |
<xsl:attribute name="type">c</xsl:attribute> |
| 29 |
<primary><xsl:value-of select="."/></primary> |
| 30 |
</xsl:element> |
| 31 |
</xsl:if> |
| 32 |
</xsl:for-each> |
| 33 |
<xsl:copy-of select="."/> |
| 34 |
</xsl:template> |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
</xsl:stylesheet> |