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

Re: How to find parent's-parent's-sibling-sibling name

Subject: Re: How to find parent's-parent's-sibling-sibling name
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Thu, 19 Sep 2002 08:31:50 +0000
find a parent
And I hope that I am right in what I have mentioned in the Subject line of
this mail ;-)

with what you have asked for, i wud have thot that u need parent's sibling..


Try the following code and let me know if thaz not what you want

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="/BehaviourInfo/BehaviourBitmaps/BehaviourBitmapsInfo">
<xsl:value-of select="."/><br/>
<xsl:value-of select="../../Trap/Name"/>
<hr/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>



From: "Satish, L. Gnanendra" <LGnanendra.Satish@xxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  How to find parent's-parent's-sibling-sibling name
Date: Thu, 19 Sep 2002 08:13:02 +0200

Hello,
I am a novice to XSLT and I would like a fast fix to this.
And I hope that I am right in what I have mentioned in the Subject line of
this mail ;-)
The sample xml snippet is given below.


<BehaviourInfo ID="3">
     <Name>&text_88;</Name>
     <Trap>
       <Name>AlarmEvent</Name>
     </Trap>
     <BehaviourBitmaps>
       <BehaviourBitmapsInfo>
         <Name>&text_90;</Name>
       </BehaviourBitmapsInfo>
       <BehaviourBitmapsInfo>
         <Name>&text_91;</Name>
       </BehaviourBitmapsInfo>
     </BehaviourBitmaps>
</BehaviourInfo>

Right now I am iterating in the "BehaviourBitmapsInfo" tag. How do I find
"Trap/Name" from this position without leaving the iteration?

rgds,
Gnanendra.
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -
This e-mail and any attachments may contain information which is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer.


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




_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com



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.