xsl-list
[Top] [All Lists]

RE: Number error with XALAN

2003-01-20 06:00:03
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(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Sascha Assbach
Sent: 20 January 2003 11:49
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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



<Prev in Thread] Current Thread [Next in Thread>