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