[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Line SVG charts via XSLT

Subject: Re: Line SVG charts via XSLT
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 6 Jul 2001 16:28:06 +0200 (MET DST)
thorsten richter
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.