[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Line SVG charts via XSLT
Hi Thorsten, > My idea is something like ... > natrium[position + 1] ... for the following value. Can anybody help me?? > Thanks a lot... > Thorsten Richter > > <?xml version="1.0"?> > <laborviewer> > <labor> > <natrium>144</natrium> > <kalium>4.3</kalium> > <hb>9.1</hb> > </labor> > <labor> > <natrium>150</natrium> > <kalium>4.9</kalium> > <hb>8.8</hb> > </labor> > <labor> > <natrium>140</natrium> > <kalium>5.0</kalium> > <hb>8.0</hb> > </labor> > </laborviewer> > [...] > <xsl:with-param name="y-natrium-after"><xsl:value-of > select="natrium[(position() + 1)]"/></xsl:with-param> It seems to me you want <xsl:with-param name="y-natrium-after" select="following-sibling::labor/natrium" /> Btw: using the select attribute of xsl:with-param and xsl:variable makes the code shorter and more readable. (There's a small semantic difference, but in your case it should give the same result.) Cheers, Oliver /-------------------------------------------------------------------\ | ob|do Dipl.Inf. Oliver Becker | | --+-- E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx | | op|qo WWW: http://www.informatik.hu-berlin.de/~obecker | \-------------------------------------------------------------------/ 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
|