Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 14th, 2003, 08:09 AM
enT enT is offline
Registered User
Join Date: Sep 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with empty block tag in xsl-fo and fop

i have the following template that goes through a text element and
preserves all breaking spaces.

<xsl:template name="nl2br">
<xsl:param name="StringToTransform"/>
<xsl:variable name="br">

<xsl:when test="contains($StringToTransform,$br)">
<xsl:value-of select="substring-before$StringToTransform,$br)"/>
<xsl:call-template name="nl2br">
<xsl:with-param name="StringToTransform">
<xsl:value-of select="substring-after($StringToTransform,$br)"/>

<xsl:value-of select="$StringToTransform"/>

To alter this to be able to be used in xsl-fo i change the <br/> tag to a <fo:block/> tag. However when i use fop to render the page to create a pdf document the empty block tags are not being preserved.

Does anybody know if there is a problem with FOP and empty block tags?
I have searched other fop groups but found nothing.Or is there a fundamental flaw in my template??

Thanks in advance Thea.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple FOP files to single PDF using XSL bhavanimachani XML 7 March 28th, 2008 05:59 AM
XSL:FO Querying block id tags goldendase XSLT 4 September 20th, 2007 02:54 PM
XSL-FO NEO1976 XML 2 July 19th, 2006 10:10 AM
xsl:fo with Select Birger XSLT 4 July 18th, 2006 11:38 AM
hello, some problems with XSL-FO LuisMM XSLT 4 December 19th, 2003 02:55 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.