diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-09-04 15:48:50 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-09-04 15:48:50 -0400 |
commit | 6f5602c365303152b1c74c5449bc3d0b35da876b (patch) | |
tree | 9b369fa97feed7c9ab05abd100bc443f1b7f1773 /doc | |
parent | d2f68128f7aa41a58b19a85114e83905fd35d5e9 (diff) |
Fix some mismatches in the stylesheet
The stylesheet was producing invalid docbook in some places.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/dbus/spec-to-docbook.xsl | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/doc/dbus/spec-to-docbook.xsl b/doc/dbus/spec-to-docbook.xsl index f69bebd..720eca9 100644 --- a/doc/dbus/spec-to-docbook.xsl +++ b/doc/dbus/spec-to-docbook.xsl @@ -256,20 +256,18 @@ </xsl:template> <xsl:template match="doc:list"> - <para> - <xsl:choose> - <xsl:when test="contains(@type,'number')"> - <orderedlist> - <xsl:call-template name="do-listitems"/> - </orderedlist> - </xsl:when> - <xsl:otherwise> - <itemizedlist> - <xsl:call-template name="do-listitems"/> - </itemizedlist> - </xsl:otherwise> - </xsl:choose> - </para> + <xsl:choose> + <xsl:when test="contains(@type,'number')"> + <orderedlist> + <xsl:call-template name="do-listitems"/> + </orderedlist> + </xsl:when> + <xsl:otherwise> + <itemizedlist> + <xsl:call-template name="do-listitems"/> + </itemizedlist> + </xsl:otherwise> + </xsl:choose> </xsl:template> <xsl:template match="doc:para"> @@ -386,7 +384,7 @@ See also: <variablelist role="params"> <xsl:for-each select="arg"> <varlistentry><term><parameter><xsl:value-of select="@name"/></parameter>:</term> -<listitem><simpara><xsl:apply-templates select="doc:doc/doc:summary"/></simpara></listitem> +<listitem><para><xsl:apply-templates select="doc:doc/doc:summary"/></para></listitem> </varlistentry> </xsl:for-each> </variablelist> |