Subject: RE: [xsl] Number error with XALAN From: Jarno.Elovirta@xxxxxxxxx Date: Mon, 20 Jan 2003 13:55:47 +0200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Number error with XALAN, Joerg Heinicke | Thread | Re: [xsl] Number error with XALAN, sascha |
[xsl] Number error with XALAN, Sascha Assbach | Date | RE: [xsl] Number error with XALAN, Michael Kay |
Month |