diff options
author | Michael Leupold <lemma@confuego.org> | 2010-09-25 22:20:16 +0200 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2010-12-04 16:11:42 +0000 |
commit | c450df6716b5a3bb19470cfb41ab3b192251243b (patch) | |
tree | d7f28d6c60b24328e2039169b1855a885baf8385 /secret-service/tools | |
parent | e94829fd5ec3a23ffeda13cd56ec14d5b2eceb3d (diff) | |
download | xdg-specs-c450df6716b5a3bb19470cfb41ab3b192251243b.tar.xz |
Allow docbook inside tp:docstring. This is useful for examples, eg.:
<tp:docstring xmlns:docbook="http://docbook.org/ns/docbook">
<para>
This is the method TestMethod.
<example>
<title>Example for TestMethod</title>
<programlisting>
<![CDATA[ int x = TestMethod(a, b, c); ]]>
</programlisting>
</example>
</para>
</tp:docstring>
Diffstat (limited to 'secret-service/tools')
-rw-r--r-- | secret-service/tools/spec-to-docbook.xsl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/secret-service/tools/spec-to-docbook.xsl b/secret-service/tools/spec-to-docbook.xsl index d320d61..14d5b24 100644 --- a/secret-service/tools/spec-to-docbook.xsl +++ b/secret-service/tools/spec-to-docbook.xsl @@ -4,6 +4,7 @@ xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:docbook="http://docbook.org/ns/docbook" exclude-result-prefixes="tp html"> <!-- @@ -35,7 +36,7 @@ <xsl:param name="allow-undefined-interfaces" select="false()"/> - <xsl:template match="html:* | @*"> + <xsl:template match="docbook:* | html:* | @*"> <xsl:copy> <xsl:apply-templates/> </xsl:copy> @@ -143,11 +144,13 @@ </xsl:template> <xsl:template match="tp:docstring"> - <para><xsl:value-of select="text()"/></para> + <para> + <xsl:copy-of select="child::node()"/> + </para> </xsl:template> <xsl:template match="tp:docstring" mode="nopara"> - <xsl:value-of select="text()"/> + <xsl:copy-of select="child::node()"/> </xsl:template> <xsl:template match="tp:added"> |