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

Re: Using Preceding-Sibling to acquire value in for-ea

Subject: Re: Using Preceding-Sibling to acquire value in for-each loop
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 03 Jun 2002 22:38:09 +0200
value of sibling in xsl
Hi Mark,

you are not using XSLT, but an old MS-specific implementation of Working Draft status. Have a look at http://www.netcrucible.com/ for more information.

Joerg

Mark Turanin wrote:
In a for-loop I am trying to acquire the value of the previous z:row
@LedgerID value captured in the for-loop....

<z:data>
	<z:row LedgerID=1/>
	<z:row LedgerID=2/>
</z:data>
However, with the following xsl I keep getting the error :  Description:
Expected token 'eof' found ':' .preceding-sibling-->:<--:row[1]

Please advise

<HTML xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<META name="VI60_DefaultClientScript" Content="VBScript"></META>
<BODY> <xsl:element name = "FORM">
<xsl:element name="table">
<xsl:attribute name="name">tGLALL</xsl:attribute>
<xsl:attribute name="align">center</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="cols">11</xsl:attribute>
<xsl:attribute name="height">1</xsl:attribute>
<xsl:element name="TR">
<xsl:element name="TD">
<B><U>Previous
LedgerID</U></B>
</xsl:element>


				</xsl:element>
					<xsl:for-each
select="xml/rs:data/z:row">
						<xsl:element name="TR">
							<xsl:element
name="TD">
	
<xsl:value-of select="preceding-sibling::row[1]"/>
							</xsl:element>
						</xsl:element>
					</xsl:for-each>		
	</xsl:element>
</xsl:element>
</BODY>
</HTML>


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.