From: <no...@so...> - 2002-06-09 11:43:07
|
Bugs item #496453, was opened at 2001-12-24 05:27 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=373747&aid=496453&group_id=21935 Category: DocBook XSL FO Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Peter Kullmann (arekup) Assigned to: Nobody/Anonymous (nobody) >Summary: Indexterms with "-" at end of comment Initial Comment: For an <indexterm> the fo stylesheet generates a <fo:wrapper> element with a comment containing the values of the primary, secondary and tertiary elements (if available). We often use indexterms that look like the following: <indexterm> <primary>Aterm</primary> <secondary>Another-</secondary> </indexterm> the stylesheet produces <fo:wrapper id="anid"> <!-- Aterm, Another---> </fo:wrapper> which is no longer well-formed (in fact, saxon doesn't even output the comment). I fix this by adding a space in the indexterm template: <xsl:template match="indexterm"> <fo:wrapper> <xsl:attribute name="id"> <xsl:call-template name="object.id"/> </xsl:attribute> <xsl:comment> <xsl:value-of select="primary"/> <xsl:if test="secondary"> <xsl:text>, </xsl:text> <xsl:value-of select="secondary"/> </xsl:if> <xsl:if test="tertiary"> <xsl:text>, </xsl:text> <xsl:value-of select="tertiary"/> </xsl:if> <xsl:text> </xsl:text> <!-- allow indexterms ending in a dash --> </xsl:comment> </fo:wrapper> </xsl:template> ---------------------------------------------------------------------- >Comment By: Norman Walsh (nwalsh) Date: 2002-06-09 07:43 Message: Logged In: YES user_id=81663 Yep. Fixed in CVS. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=373747&aid=496453&group_id=21935 |