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 |
- Number error with XALAN
- Sascha Assbach - Mon, 20 Jan 2003 06:43:09 -0500 (EST)
- <Possible follow-ups>
- Jarno . Elovirta - Mon, 20 Jan 2003 06:54:38 -0500 (EST) <=
- sascha - Mon, 20 Jan 2003 09:02:43 -0500 (EST)
- sascha - Tue, 21 Jan 2003 02:37:41 -0500 (EST)
|
|