Subject: Re: [xsl] xsl: preserving spaces preserves only one space? From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 4 Apr 2005 16:16:36 +0100 |
<xsl:preserve-space elements="transaction_detail"/> That presves white space nodes during the transformation stage although that will have no effect on your resulting FO file as you never have any select expressions that would be affected by the presence of white space text nodes. So (presumably) the white space that you want to preserver _is_ preserved by your XSLT transformation and appears in the resulting FO file. FO in common with HTML, CSS, TeX and many other typesetting systems will by default render any run of white space just as a single word space. If you don't want that you need to set the white space properties on the surrounding fo:block, there are several of them, giving control of line break and white space normalization but white-space-treatment="preserve" is probably a place to start. http://www.w3.org/TR/xsl/slice7.html#white-space-treatment David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl: preserving spaces prese, josh higgins | Thread | Re: [xsl] xsl: preserving spaces p, josh higgins |
[xsl] xsl: preserving spaces prese, josh higgins | Date | Re: [xsl] xsl: preserving spaces p, josh higgins |
Month |