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

RE: Number error with XALAN

Subject: RE: Number error with XALAN
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 20 Jan 2003 13:00:03 -0000
RE:  Number error with XALAN
XT (incorrectly) allows you to have two different variables both called
"c"; Xalan (correctly) disallows it - though this is a very strange way
to report the error.

The code doesn't do what you think it does, even on XT - the person who
wrote it obviously thought they were incrementing the existing variable,
rather than declaring a new variable.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Sascha Assbach
> Sent: 20 January 2003 11:49
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Number error with XALAN
> 
> 
> Hi there,
> 
> i have following problem
> in my XSL there is a section containing the following code, which ran
> without producing errors with XT
> but produces a "Can not convert #NUMBER to a NodeList!" error 
> with XALAN.
> 
> <xsl:variable name="c" select="1"/>
>   <xsl:for-each select="meldung....">
>     <fo:block font-size="10pt">...</fo:block>
>     <xsl:variable name="c" select="$c+1"/>
>   </xsl:for-each>
> </fo:block>
> 

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.