diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2004-10-19 03:42:00 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2004-10-19 03:42:00 +0000 |
commit | 82739df72e203bc26dd07c67172c5fc603c6b960 (patch) | |
tree | e76c775498e140c86c084aec6d1c4231c6300480 /xslt/docbook/common/db-xref.xsl | |
parent | 0702b8bbf6b808a5fe5a9352fe33d616972459a2 (diff) | |
download | gnome-doc-utils-82739df72e203bc26dd07c67172c5fc603c6b960.tar.gz |
- Implemented some number formatters - Implemented citetitle as a format
* xslt/docbook/common/db-format.xml.in:
* xslt/docbook/common/db-label.xsl:
* xslt/docbook/common/db-xref.xsl:
* xslt/docbook/html/db2html-inline.xsl:
* xslt/docbook/html/db2html-title.xsl:
- Implemented some number formatters
- Implemented citetitle as a format template
* xslt/docbook/html/db2html-admon.xsl:
* xslt/docbook/html/db2html-css.xsl:
- Some CSS stuff
* xslt/docbook/html/db2html-block.xsl:
- Implemented literallayout
* xslt/docbook/html/db2html-table.xsl:
- Default to vertical-align: top
* xslt/gettext/format2xsl.xsl:
- Got the role stuff working right
Diffstat (limited to 'xslt/docbook/common/db-xref.xsl')
-rw-r--r-- | xslt/docbook/common/db-xref.xsl | 54 |
1 files changed, 8 insertions, 46 deletions
diff --git a/xslt/docbook/common/db-xref.xsl b/xslt/docbook/common/db-xref.xsl index 0b0598d..0dcb9b9 100644 --- a/xslt/docbook/common/db-xref.xsl +++ b/xslt/docbook/common/db-xref.xsl @@ -26,58 +26,20 @@ <xsl:when test="$target/@xreflabel"> <xsl:value-of select="$target/@xreflabel"/> </xsl:when> - <xsl:when test="$xrefstyle"> - <!-- FIXME --> + <xsl:when test="$xrefstyle and starts-with($xrefstyle, 'role:')"> + <xsl:call-template name="db.label"> + <xsl:with-param name="node" select="$target"/> + <xsl:with-param name="role" select="substring-after($xrefstyle, 'role:')"/> + </xsl:call-template> </xsl:when> <xsl:otherwise> - <xsl:apply-templates mode="db.xref.content.mode" select="$target"/> + <xsl:call-template name="db.label"> + <xsl:with-param name="node" select="$target"/> + </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> -<!-- FIXME --> -<xsl:template mode="db.xref.content.mode" match="*"> - <xsl:call-template name="db.label"/> -</xsl:template> - -<!-- -<xsl:template mode="xref.content.mode" match="article | reference"> -<xsl:choose> -<xsl:when test=" -(preceding-sibling::*[name(.) = name(current())]) or -(following-sibling::*[name(.) = name(current())]) or -(parent::part/preceding-sibling::part/*[name(.) = name(current())]) or -(parent::part/following-sibling::part/*[name(.) = name(current())]) "> -<xsl:call-template name="header"/> -</xsl:when> -<xsl:otherwise> -<xsl:call-template name="gettext"> -<xsl:with-param name="msgid" select="'Table of Contents'"/> -</xsl:call-template> -</xsl:otherwise> -</xsl:choose> -</xsl:template> - -<xsl:template mode="xref.content.mode" match="book"> -<xsl:call-template name="gettext"> -<xsl:with-param name="msgid" select="'Table of Contents'"/> -</xsl:call-template> -</xsl:template> - -<xsl:template mode="xref.content.mode" match="glossentry"> -<xsl:apply-templates mode="xref.content.mode" select="glossterm[1]"/> -</xsl:template> - -<xsl:template mode="xref.content.mode" match="glossterm"> -<xsl:apply-templates/> -</xsl:template> - -<xsl:template mode="xref.content.mode" match="*"> -<xsl:call-template name="header"/> -</xsl:template> - ---> - <!-- == db.xref.target ===================================================== --> |