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

one element relative to another question

Subject: one element relative to another question
From: "Bruce Rojas-Rennke" <brr@xxxxxxx>
Date: Wed, 27 Aug 2003 17:01:56 -0600
element relative to another element
Hey gang

Currently I am selecting the dollar values from the 'ColData' child nodes of
elements 'DataRow" (see below xml snippet). No problem there...

<xsl:for-each select="ColData[@colID='7']">
  <xsl:value-of select="@value"/>
</xsl:for-each>

Question:
How do I determine the value of TextRow/@value when I am evaluating the
DataRow/ColData/@values below? I need to see if the amount will belong in my
Current or 1-30 column of the xsl stylesheet. I am traversing the elements
in an alphabetical order so the orig order of the xml doc is shot to hell,
and I haven't the luxury of modifying format of below xml code..

------------- xml snippet --------------------------------------

<reportData>

  <TextRow rowNumber="1" value="Current" />
  <DataRow rowNumber="2">
    <ColData colID="4" value="American Express Gold (71000)" />
    <ColData colID="7" value="132.57" />
  </DataRow>
  <DataRow rowNumber="3">
    <ColData colID="4" value="Verizon Wireless (1005-1324318)" />
    <ColData colID="7" value="66.55" />
  </DataRow>

  <TextRow rowNumber="29" value="1 - 30" />
  <DataRow rowNumber="30">
    <ColData colID="2" value="2003-07-31" />
    <ColData colID="4" value="Sound Connection Inc." />
  </DataRow>
  <DataRow rowNumber="31">
    <ColData colID="2" value="2003-07-19" />
    <ColData colID="4" value="Qwest (303 679-3233-318R)" />
  </DataRow>

</ReprtData>

thank you thank you,
- Flashlight


 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.