[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: Jarno.Elovirta@xxxxxxxxx
Date: Mon, 20 Jan 2003 13:55:47 +0200
feindflug font
Hi,

> 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.
> 
> What can i do? our new environment forces me to use XALAN
> 
> Output is a simple
> 1) entry
> 2) entry 2...
> ..
> list.
> 
> I believe it's not an fo problem, so i posted it here...
> 
> <xsl:variable name="c" select="1"/>
> <fo:block space-before="1cm" line-height="10pt">
> <xsl:for-each
> select="meldung/Grafikauswertungen/MeilensteinTrendAnalyse/Mei
> lensteine/Meil
> enstein[not(MeilensteinBezeichnung = '')]">
> <fo:block font-size="10pt" 
> font-family="sans-serif"><xsl:apply-templates
> select="$c" />) <xsl:apply-templates select="MeilensteinBezeichnung"

change the

  <xsl:apply-templates select="$c" />

to 

  <xsl:value-of select="$c" />

> /></fo:block>
> <xsl:variable name="c" select="$c+1"/>

You can't do this in XSLT, change the value of a variable. If you want to for-loop type construct, use position(), or write a recursive template.

Cheers,

Jarno - Feindflug: Erinnerung

 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.