2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 <!-- ********************************************************************
6 $Id: xbel.xsl 6910 2007-06-28 23:23:30Z xmldoc $
7 ********************************************************************
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.
13 ******************************************************************** -->
15 <!-- ==================================================================== -->
17 <xsl:output method="xml"/>
19 <!-- ==================================================================== -->
21 <xsl:template match="xbel">
23 <xsl:apply-templates/>
27 <!-- Only partial support for xbel elements -->
28 <xsl:template match="xbel/info|xbel/title|xbel/desc|
29 xbel/alias|xbel/separator">
33 <xsl:template match="folder">
35 <xsl:apply-templates select="title"/>
37 <xsl:apply-templates select="folder|bookmark"/>
42 <xsl:template match="folder/title">
43 <b><xsl:apply-templates/></b>
46 <xsl:template match="bookmark">
48 <a href="{@href}" target="_top">
49 <xsl:apply-templates select="title"/>
54 <xsl:template match="bookmark/title">
55 <xsl:apply-templates/>
58 <!-- ==================================================================== -->
60 <xsl:template match="xbel" mode="dynamic">
62 <xsl:apply-templates mode="dynamic"/>
66 <xsl:template match="info" mode="dynamic">
69 <xsl:template match="folder" mode="dynamic">
71 <xsl:apply-templates select="title" mode="dynamic"/>
72 <ul style="display:none" id="{@id}">
73 <xsl:apply-templates select="folder|bookmark" mode="dynamic"/>
78 <xsl:template match="folder/title" mode="dynamic">
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>
88 <xsl:attribute name="class">exlist</xsl:attribute>
89 <xsl:attribute name="style">color: blue</xsl:attribute>
90 <xsl:apply-templates mode="dynamic"/>
93 <xsl:apply-templates mode="dynamic"/>
100 <xsl:template match="bookmark" mode="dynamic">
102 <a href="{@href}" target="_top">
103 <xsl:apply-templates select="title" mode="dynamic"/>
108 <xsl:template match="bookmark/title" mode="dynamic">
109 <xsl:apply-templates mode="dynamic"/>
112 <!-- ==================================================================== -->