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

Re: FW: Xslt that worked for fop0.20.2 no longer works

Subject: Re: FW: Xslt that worked for fop0.20.2 no longer works at later versions
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Mon, 28 Apr 2008 00:06:18 +0200
Re:  FW: Xslt that worked for fop0.20.2 no longer works
Hesselberth, Jan wrote:
I have been using fop 0.20.2 to produce pdf documents from xml using
xsl.
...
When I run under fop-0.94 ...

FOP 0.20.2 implements an old draft of the XSLFO 1.0 standard. FOP 0.94 implements a subset of the standard. Some important details have changed, you'll have to rework your XSLT. Furthermore, FOP 0.94 validates the FO much more strictly by default.

The problem seems to be with locally declared variables within an
xsl:for-each loop.
I declare a variable globally, then set the value locally just before
the</xsl:for-each>

This should never have worked, because you can't reassign a variable in XSLT.

When the processing moves back to the start on the xsl:for-each, the
variable has the value of the global variable.

This is the expected outcome. Again, you probably have to rewrite your XSLT rather thoroughly.

J.Pietschmann

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.