RE: [xsl] FO White space Handling

Subject: RE: [xsl] FO White space Handling
From: "Scott Carter" <scottc@xxxxxxxxxxxxxx>
Date: Thu, 31 May 2001 07:33:46 -0600
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


Current Thread