W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2007

Re: Basic FO questions (stripping white space)

From: Khaled Aly <ka.aly@luxsci.net>
Date: Wed, 07 Nov 2007 21:36:32 +0200
Message-ID: <473213C0.9010701@luxsci.net>
To: www-xsl-fo@w3.org
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 
, the poster seems to have mis-reported the result, or otherwise there 
is something subtle that I didn't figure.
<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 mis-took for Tony's earlier reference to white 
space removal, 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 

The xslt for element WebLink:
<xsl:template match="WebLink">
  <xsl:attribute name="external-destination"><xsl:value-of 
  <fo:inline color="blue" 

The Saxon generated FO is:
employing <fo:basic-link 
external-destination="http://www.xml.org"><fo:inline color="blue" 

And the FOP 0.93 generated PDF is (an extra space around  the hyperlink 
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 and generating "good" pdf. I then tried 
adding fo:inline to the xsl:strip-space element list, but didn't work as 
expected it applies only to source document. Any ideas for this, while 
keeping the fo:inline to provide the normal web link appearance, would 
be appreciated.

Thanks again.
Received on Wednesday, 7 November 2007 19:36:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:31 UTC