| 1 |
<?xml version='1.0'?> |
| 2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 3 |
version='1.0'> |
| 4 |
|
| 5 |
<!-- ******************************************************************** |
| 6 |
|
| 7 |
This file is part of the XSL DocBook Stylesheet distribution. |
| 8 |
See ../README or http://cdn.docbook.org/release/xsl/current/ for |
| 9 |
copyright and other information. |
| 10 |
|
| 11 |
******************************************************************** --> |
| 12 |
|
| 13 |
<!-- ==================================================================== --> |
| 14 |
|
| 15 |
<xsl:output method="xml"/> |
| 16 |
|
| 17 |
<!-- ==================================================================== --> |
| 18 |
|
| 19 |
<xsl:template match="xbel"> |
| 20 |
<ul> |
| 21 |
<xsl:apply-templates/> |
| 22 |
</ul> |
| 23 |
</xsl:template> |
| 24 |
|
| 25 |
<!-- Only partial support for xbel elements --> |
| 26 |
<xsl:template match="xbel/info|xbel/title|xbel/desc| |
| 27 |
xbel/alias|xbel/separator"> |
| 28 |
<!-- No op --> |
| 29 |
</xsl:template> |
| 30 |
|
| 31 |
<xsl:template match="folder"> |
| 32 |
<li> |
| 33 |
<xsl:apply-templates select="title"/> |
| 34 |
<ul> |
| 35 |
<xsl:apply-templates select="folder|bookmark"/> |
| 36 |
</ul> |
| 37 |
</li> |
| 38 |
</xsl:template> |
| 39 |
|
| 40 |
<xsl:template match="folder/title"> |
| 41 |
<b><xsl:apply-templates/></b> |
| 42 |
</xsl:template> |
| 43 |
|
| 44 |
<xsl:template match="bookmark"> |
| 45 |
<li> |
| 46 |
<a href="{@href}" target="_top"> |
| 47 |
<xsl:apply-templates select="title"/> |
| 48 |
</a> |
| 49 |
</li> |
| 50 |
</xsl:template> |
| 51 |
|
| 52 |
<xsl:template match="bookmark/title"> |
| 53 |
<xsl:apply-templates/> |
| 54 |
</xsl:template> |
| 55 |
|
| 56 |
<!-- ==================================================================== --> |
| 57 |
|
| 58 |
<xsl:template match="xbel" mode="dynamic"> |
| 59 |
<ul> |
| 60 |
<xsl:apply-templates mode="dynamic"/> |
| 61 |
</ul> |
| 62 |
</xsl:template> |
| 63 |
|
| 64 |
<xsl:template match="info" mode="dynamic"> |
| 65 |
</xsl:template> |
| 66 |
|
| 67 |
<xsl:template match="folder" mode="dynamic"> |
| 68 |
<li> |
| 69 |
<xsl:apply-templates select="title" mode="dynamic"/> |
| 70 |
<ul style="display:none" id="{@id}"> |
| 71 |
<xsl:apply-templates select="folder|bookmark" mode="dynamic"/> |
| 72 |
</ul> |
| 73 |
</li> |
| 74 |
</xsl:template> |
| 75 |
|
| 76 |
<xsl:template match="folder/title" mode="dynamic"> |
| 77 |
<b> |
| 78 |
<span> |
| 79 |
<xsl:choose> |
| 80 |
<xsl:when test="../@id"> |
| 81 |
<xsl:attribute name="onClick"> |
| 82 |
<xsl:text>toggleList('</xsl:text> |
| 83 |
<xsl:value-of select="../@id"/> |
| 84 |
<xsl:text>')</xsl:text> |
| 85 |
</xsl:attribute> |
| 86 |
<xsl:attribute name="class">exlist</xsl:attribute> |
| 87 |
<xsl:attribute name="style">color: blue</xsl:attribute> |
| 88 |
<xsl:apply-templates mode="dynamic"/> |
| 89 |
</xsl:when> |
| 90 |
<xsl:otherwise> |
| 91 |
<xsl:apply-templates mode="dynamic"/> |
| 92 |
</xsl:otherwise> |
| 93 |
</xsl:choose> |
| 94 |
</span> |
| 95 |
</b> |
| 96 |
</xsl:template> |
| 97 |
|
| 98 |
<xsl:template match="bookmark" mode="dynamic"> |
| 99 |
<li> |
| 100 |
<a href="{@href}" target="_top"> |
| 101 |
<xsl:apply-templates select="title" mode="dynamic"/> |
| 102 |
</a> |
| 103 |
</li> |
| 104 |
</xsl:template> |
| 105 |
|
| 106 |
<xsl:template match="bookmark/title" mode="dynamic"> |
| 107 |
<xsl:apply-templates mode="dynamic"/> |
| 108 |
</xsl:template> |
| 109 |
|
| 110 |
<!-- ==================================================================== --> |
| 111 |
|
| 112 |
</xsl:stylesheet> |