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

sibling axis Q

Subject: sibling axis Q
From: mxmodi@xxxxxxxxxxxxxxx
Date: Wed, 27 Sep 2000 11:08:55 -0500
sibling axis
Hi,

I am trying to grab elements that are a sibling of the current node I am
working on. I am not sure if that makes much sense, so let me just show you
the XML.

<root>
  <child1>
    <data>
      <record>
        <Name>some name</Name>
        <Week>some dates</Week>
        <Log>
            <Daily>daily text</Daily>
            <Weekly>weekly text</Weekly>
        </Log>
        <Week>different week for same name</Week>
        <Log>
            <Daily>daily text</Daily>
            <Weekly>weekly text</Weekly>
        </Log>
      </record>
      <record>
        <Name>different name</Name>
        <Week>some dates-same or different</Week>
        <Log>
            <Daily>daily text</Daily>
            <Weekly>weekly text</Weekly>
        </Log>
      </record>
      <record>
      ..........
      </record>
    </data>
  </child1>
</root>

I have tried to use the ancestor axis with some luck. I can display a
different "Week" for each "Name". However, I am having trouble extracting
the "Log" only for that particular "Week". Is there anything like a
"sibling axis"? I have tried following-sibling axis, however, that would
return the data for all the following "Logs" for each "Week". Any
thoughts...? Any help is appreciated.

Thanks,

Maulik





 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.