mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 02:43:58 +00:00
Prevent the generation of empty <itemizedlist> elements, which is invalid
docbook and causes apache fop 0.94 to choke and die. [SVN r40047]
This commit is contained in:
parent
9b2ca02ca1
commit
caeaebade4
@ -382,15 +382,15 @@ Copyright (c) 2000-2001 University of Notre Dame. All rights reserved.
|
|||||||
</refsect1>
|
</refsect1>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:variable name="see-also-list" select="concept-ref | see-also | refines | refines-when-mutable | models-as-first-arg | models | models-when-mutable"/>
|
<xsl:variable name="see-also-list-0" select="concept-ref | see-also | refines | refines-when-mutable | models-as-first-arg | models | models-when-mutable"/>
|
||||||
|
<xsl:variable name="see-also-list-1" select="$see-also-list-0[string(@name | @concept) != string(../@name)]"/>
|
||||||
|
<xsl:variable name="see-also-list" select="$see-also-list-1[not(string(@name|@concept) = (preceding::*/@name | preceding::*/@concept | ancestor::*/@name | ancestor::*/@concept))]"/>
|
||||||
<xsl:if test="$see-also-list">
|
<xsl:if test="$see-also-list">
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>See also</title>
|
<title>See also</title>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<xsl:for-each select="$see-also-list">
|
<xsl:for-each select="$see-also-list">
|
||||||
<xsl:sort select="string(@name|@concept)" data-type="text"/>
|
<xsl:sort select="string(@name|@concept)" data-type="text"/>
|
||||||
<xsl:if test="string(@name|@concept) != string(../@name)">
|
|
||||||
<xsl:if test="not(string(@name|@concept) = (preceding::*/@name | preceding::*/@concept | ancestor::*/@name | ancestor::*/@concept))">
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<xsl:call-template name="concept.link">
|
<xsl:call-template name="concept.link">
|
||||||
@ -398,8 +398,6 @@ Copyright (c) 2000-2001 University of Notre Dame. All rights reserved.
|
|||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</xsl:if>
|
|
||||||
</xsl:if>
|
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user