summaryrefslogtreecommitdiff
path: root/xslt/gettext
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2004-12-27 19:07:48 +0000
committerShaun McCance <shaunm@src.gnome.org>2004-12-27 19:07:48 +0000
commitd3b9ec2f65a1f61171214e281ce101d53d070353 (patch)
tree653f74ba30a26cfd78ec4ab7270d4ef5163ff9d1 /xslt/gettext
parent7eafc2a4f87b7cdedb9f250dc5404939ea1e6eb8 (diff)
downloadgnome-doc-utils-d3b9ec2f65a1f61171214e281ce101d53d070353.tar.gz
- Added scrollkeeper stuff to distuninstallcheck_listfiles
* Makefile.am: - Added scrollkeeper stuff to distuninstallcheck_listfiles * doc/xslt/C/translating.xml: - Type fixes * po/cs.po: - Fixed incorrect format string, caused by a bad comment from me * xslt/docbook/common/db-format.xml.in: - Changed semantics of 'header' role * xslt/gettext/format2xsl.xsl: - Added support for transforming tags in msgstrs * xslt/docbook/html/db2html-admon.xsl: * xslt/docbook/html/db2html-autotoc.xsl: * xslt/docbook/html/db2html-block.xsl: * xslt/docbook/html/db2html-callout.xsl: * xslt/docbook/html/db2html-classsynopsis.xsl: * xslt/docbook/html/db2html-cmdsynopsis.xsl: * xslt/docbook/html/db2html-css.xsl: * xslt/docbook/html/db2html-division.xsl: * xslt/docbook/html/db2html-ebnf.xsl: * xslt/docbook/html/db2html-funcsynopsis.xsl: * xslt/docbook/html/db2html-info.xsl: * xslt/docbook/html/db2html-inline.xsl: * xslt/docbook/html/db2html-list.xsl: * xslt/docbook/html/db2html-media.xsl: * xslt/docbook/html/db2html-qanda.xsl: * xslt/docbook/html/db2html-refentry.xsl: * xslt/docbook/html/db2html-table.xsl: * xslt/docbook/html/db2html-title.xsl: * xslt/docbook/html/db2html-xref.xsl: * xslt/docbook/html/db2html.xsl: - Switched to XHTML - Worked on the refentry title - Various visual enhancements
Diffstat (limited to 'xslt/gettext')
-rw-r--r--xslt/gettext/format2xsl.xsl24
1 files changed, 21 insertions, 3 deletions
diff --git a/xslt/gettext/format2xsl.xsl b/xslt/gettext/format2xsl.xsl
index 8ab245f..f7e2381 100644
--- a/xslt/gettext/format2xsl.xsl
+++ b/xslt/gettext/format2xsl.xsl
@@ -167,14 +167,32 @@
<xsl:template mode="format2xsl.mode" match="*">
<xsl:param name="template"/>
<xsl:param name="lang"/>
- <xsl:copy>
- <xsl:for-each select="node()">
+ <xslt:variable name="name">
+ <xslt:call-template name="format2xsl.element.name">
+ <xslt:with-param name="name" select="'{local-name(.)}'"/>
+ <xslt:with-param name="namespace" select="'{namespace-uri(.)}'"/>
+ </xslt:call-template>
+ </xslt:variable>
+ <xslt:variable name="namespace">
+ <xslt:call-template name="format2xsl.element.namespace">
+ <xslt:with-param name="name" select="'{local-name(.)}'"/>
+ <xslt:with-param name="namespace" select="'{namespace-uri(.)}'"/>
+ </xslt:call-template>
+ </xslt:variable>
+ <xslt:element>
+ <xsl:attribute name="name">
+ <xsl:text>{$name}</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="namespace">
+ <xsl:text>{$namespace}</xsl:text>
+ </xsl:attribute>
+ <xsl:for-each select="* | text()">
<xsl:apply-templates mode="format2xsl.mode" select=".">
<xsl:with-param name="template" select="$template"/>
<xsl:with-param name="lang" select="$lang"/>
</xsl:apply-templates>
</xsl:for-each>
- </xsl:copy>
+ </xslt:element>
</xsl:template>
<!-- == msg:msg == -->