diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2003-10-30 01:00:52 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2003-10-30 01:00:52 +0000 |
commit | c9bdbdb3d69196c5691c1a99144b49da3239e979 (patch) | |
tree | 9eef562d66d503006b0ab335b8baedb0c51bb1aa | |
parent | eb20843f7f61e9b166f91345d96c40aec0693949 (diff) | |
download | yelp-c9bdbdb3d69196c5691c1a99144b49da3239e979.tar.gz |
- Added yelp:document in preparation for new transformation code.
* stylesheets/db2html-chunk.xsl:
- Added yelp:document in preparation for new transformation code.
-rw-r--r-- | stylesheets/ChangeLog | 5 | ||||
-rw-r--r-- | stylesheets/db2html-chunk.xsl | 27 |
2 files changed, 25 insertions, 7 deletions
diff --git a/stylesheets/ChangeLog b/stylesheets/ChangeLog index 08d2dea9..0264d495 100644 --- a/stylesheets/ChangeLog +++ b/stylesheets/ChangeLog @@ -1,3 +1,8 @@ +2003-10-29 Shaun McCance <shaunm@gnome.org> + + * db2html-chunk.xsl: + - Added yelp:document in preparation for new transformation code. + 2003-10-23 Shaun McCance <shaunm@gnome.org> * db2html-header.xsl: diff --git a/stylesheets/db2html-chunk.xsl b/stylesheets/db2html-chunk.xsl index 91cda845..8acc412e 100644 --- a/stylesheets/db2html-chunk.xsl +++ b/stylesheets/db2html-chunk.xsl @@ -2,7 +2,8 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" - extension-element-prefixes="exsl" + xmlns:yelp="http://www.gnome.org/yelp/ns" + extension-element-prefixes="exsl yelp" version="1.0"> <!-- ======================================================================= --> @@ -16,12 +17,24 @@ </xsl:call-template> </xsl:param> - <exsl:document href="{concat($id, $html_extension)}"> - <xsl:call-template name="html"> - <xsl:with-param name="node" select="$node"/> - <xsl:with-param name="depth_chunk" select="$depth_chunk"/> - </xsl:call-template> - </exsl:document> + <xsl:choose> + <xsl:when test="element-available('yelp:document')"> + <yelp:document href="{$id}"> + <xsl:call-template name="html"> + <xsl:with-param name="node" select="$node"/> + <xsl:with-param name="depth_chunk" select="$depth_chunk"/> + </xsl:call-template> + </yelp:document> + </xsl:when> + <xsl:when test="element-available('exsl:document')"> + <exsl:document href="{concat($id, $html_extension)}"> + <xsl:call-template name="html"> + <xsl:with-param name="node" select="$node"/> + <xsl:with-param name="depth_chunk" select="$depth_chunk"/> + </xsl:call-template> + </exsl:document> + </xsl:when> + </xsl:choose> <xsl:if test="$generate_titlepage and ($node = /*)"> <xsl:apply-templates mode="chunk.info.mode" select="."> |