xsl-list
[Top] [All Lists]

RE: Re: Not traverssing up from the for loop ??

2003-06-25 06:55:50
Hi Jarno,

Thanks !! I got it done now. I was trying to write for the child  and parent 
node within xsl:text. So is it like we can write any text value of child or 
parent node within xsl:text ?

Thanks a lot.

Regards
Dipesh !!



Date: Wed, 25 Jun 2003 08:50:18 +0300
From: Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com
Subject: RE: [xsl] 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



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>