[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

White space

Subject: White space
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Wed, 14 Jan 2004 12:51:01 -0000
xsl white space
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.