xsl-list
[Top] [All Lists]

RE: [xsl] FW: Xslt that worked for fop0.20.2 no longer works at later versions

2008-04-29 01:21:05
Thanks for the reply. However it doesn't help me resolve my problem.
I only write xsl once in a blue moon and I have to reread Michael's book
every time. Unfortunately I don't have time to do that now. Can you tell
me how I can compare the previous value in a for-each loop with the
current value if the xsl:variable approach doesn't work. I tried using
preceding but it didn't seem to work.
Any help would be greatly appreciated,
Regards
Jan 

-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm(_at_)yahoo(_dot_)de] 
Sent: 27 April 2008 23:06
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] FW: Xslt that worked for fop0.20.2 no longer works at
later versions

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



LEGAL NOTICE 


The information contained in this e-mail and any attachments are private and 
confidential. 
This message is solely intended for a particular recipient, if you are not the 
intended 
recipient you are prohibited from storing, copying, disseminating or using the 
information 
in any way.  If you received this e-mail in error please notify the sender 
immediately. 
E-mail transmission cannot be guaranteed to be secure or error-free as 
information could 
be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
contain viruses. 
The sender therefore does not accept liability for any errors, viruses or 
omissions in the 
contents of this message, which arise as a result of transmission. This e-mail 
is not 
intended to create legally binding commitments on behalf of Northern Rock plc, 
nor do its 
contents reflect the corporate views or policies of Northern Rock plc.

Northern Rock plc, 
Registered Office Northern Rock House Gosforth Newcastle upon Tyne NE3 4PL. 
Registered in England, number 3273685. Telephone No: 0191 2857191

Northern Rock plc is authorised and regulated by the Financial Services 
Authority for 
deposit-taking; advising on and arranging mortgages and general insurance; and 
for 
introducing life assurance and investments.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--