xsl-list
[Top] [All Lists]

White space

2004-01-14 05:51:01
Hi,

We're having a white space problem.  When we render to PDF/Printer, all
white space is removed between variables and all blank lines in the document
(<fo:block font-family="Helvetica" font-size="12pt"
white-space-collapse="false" space-after="0.05pt" />) are also removed.
The template which is causing the difficulties makes use of XSLT sets out
the namespaces for XSL and xsl-fo as follows:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<xsl:template match="Root">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>

If we change the template so that it no longer references XSL Transform to
the following:

<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>

(obviously remove any XSLT instructions), the resulting PDF is fine and all
white space is where it should be.

I've had a look at the XSL spec and the only thing that I could find that
might affect white space was "preserve-space".   This had no impact when
added to the XSLT template.

Does anyone have any ideas please.

Thanks in advance

Mark Williams


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>