[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Number error with XALAN
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|