Basic Fo questions (stripping white space)

Thanks for this important-to-note remark. It probably have an impact in 
several other contexts. The <xsl:strip-space elements="List"> resolved 
the problem.

Just curious on this, in 
http://www.dpawson.co.uk/xsl/sect2/N6099.html#d9172e70
, the poster seems to have mis-reported the result, or otherwise there 
is something subtle that I didn't figure.
**quote
<result>
<package id="1" position="1"/>
<package id="2" position="2"/>
<package id="3" position="3">
** unquote
Because so far to id="3", position counting is good 'as intended'.



Re the other pbm that I initially thought Tony referred to when he 
mentioned white space, I've added the element WebLink to xsl:strip-space 
to overcome, but didn't work.

The source is:
employing <WebLink url="http://www.xml.org">XML</WebLink>-based 
single-sourcing.

The xslt for element WebLink:
<xsl:template match="WebLink">
 <fo:basic-link>
  <xsl:attribute name="external-destination"><xsl:value-of 
select="@url"/></xsl:attribute>
  <fo:inline color="blue" 
text-decoration="underline"><xsl:apply-templates/></fo:inline>
 </fo:basic-link>
</xsl:template>

The Saxon generated FO is:
employing <fo:basic-link 
external-destination="http://www.xml.org"><fo:inline color="blue" 
text-decoration="underline">XML</fo:inline></fo:basic-link>-based 
single-sourcing

And the FOP 0.93 generated PDF is (an extra space around "XML"):
employing  XML -based single-sourcing.

I fixed this manually by removing the newline and/or space from around 
the <fo:inline> in the FO file. I also tried adding fo:inline to the 
xsl:strip-space element list, but still. Any ideas for this, while 
keeping the fo:inline to provide the normal web link appearance.

Thanks again.
Khaled

Received on Wednesday, 7 November 2007 19:36:45 UTC