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

Re: building path expressions around dynamic element n

Subject: Re: building path expressions around dynamic element node names
From: Rahil <qamar_rahil@xxxxxxxxxxx>
Date: Wed, 18 May 2005 13:29:20 +0100
what is rahil
Sorry still some problems.

David Carlisle wrote:

Also, I wanted to know how to access <Dynamic1> when the control is inside B/Class



lots of ways:


ancestor::Dynamic1
or
../parent::Dynamic1



So I tried Omprakash and your solution to checking a node name as well as accessing the node from a grand-child into one but there are problems with my syntax. Here is what I tried

<xsl:if test="../parent::node(.)=..//preceding-sibling::A/Class/text()"><!--Checking if the ancestor node equals the A/Class text. -->
<here>nfhg</here>
</xsl:if>


Tried this as well
<xsl:variable name="AValue" select="..//preceding-sibling::A/Class/text()"/>
<xsl:if test="../parent::node(.)=$AValue"><!--Checking if the ancestor node equals the A/Class text. -->
<here>nfhg</here>
</xsl:if>


Am I at a tangent from the right solution and what is it ?

Thanks
Rahil

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.