This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: FO White space Handling
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] FO White space Handling
- From: "Scott Carter" <scottc at turbopower dot com>
- Date: Thu, 31 May 2001 07:33:46 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
Please ignore the previous example. Here's the whitespace question I
have. When using the following XML doc and stylesheet from www.w3.org
should the space after "...see " in the XML doc be maintained by the FO
processor?
-------------------------
<doc>
...
<chapter><title>Chapter</title>
<p>For a description of X see <ref refid="x"/>.</p>
</chapter>
</doc>
--------------------------
...
<xsl:template match="chapter/title">
<fo:block id="{generate-id(.)}">
<xsl:number level="multiple" count="chapter" format="1. "/>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="p">
<fo:block>
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="ref">
<xsl:text>page </xsl:text>
<fo:page-number-citation refid="{generate-id(id(@refid)/title)}"/>
</xsl:template>
...
----------------------------------------------
Scott
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list