Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 14th, 2003, 08:09 AM
enT enT is offline
Registered User
 
Join Date: Sep 2003
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with empty block tag in xsl-fo and fop

hello,
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:text>#xA;</xsl:text>
</xsl:variable>
<xsl:choose>

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

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

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.



Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:15 AM.


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