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