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

RE: Not traverssing up from the for loop ??

Subject: RE: Not traverssing up from the for loop ??
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 25 Jun 2003 08:50:18 +0300
RE:  Not traverssing up from the for loop ??
Hi,

> <xsl:text>
> ```````````````````````<!-- HERE I AM NOT GETTING VALUE --> 
> `<xsl:value-of 
> select="generate-id(..//..//..)"/>`<xsl:value-of 
> select="generate-id(..//)"/></xsl:text></xsl:for-each>

xsl:text may only have text node children, see <http://www.w3.org/TR/xslt#section-Creating-Text>. Use "generate-id(.)" to generate an id for the current node and "generate-id(..)" for the parent of the current node.

> I AM TYRING TO GET GENERATED ID OF CLASS AND ITS PARENT TAG 
> i.e. BASIC tag. 

You were trying to generate the ids in a for-each instruction processing OBJECTs. Move the id generation out of the for-each, so that your current context is CLASS element.

> But i m not getting. Can somebody please tell me where i m 
> getting wrong. I 
> tried using "..//..//.." and "..//.." and even "..".

Guessing is usually a strategy that will not get you there.

Cheers,

Jarno

 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.