469,357 Members | 1,835 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,357 developers. It's quick & easy.

XSL conditional styling based on certain values lower down

I am trying to create an xsl stylesheet.
Here is how my input XML looks like :-

<test-case number="1">
<cost-basis cb="300" key="mykey" is-true="false"/>
<cost-basis cb="301" key="mykey" is-true="false"/>
<cb-adjust-impl id="123456" quantity="100" myid="123456-0-0" />
<cb-adjust-impl id="123456" quantity="100" myid="123456-0-0" />
<test-case number="2">

For test case number 1, the id is same irrespective of whether it lies in a different diff-data.
For the first diff-data, the id is not mentioned. Is it possible to go one level higher up and collect the id from either of the subsequent diff-data which has the id attribute and display the value of that id (123456 in this case) for all element in any diff-data for that test case. The output format is not an xml. it is in CSV format.
I tried using ancestor, but not able to get it correctly.
Feb 7 '07 #1
1 1035
839 Expert 512MB
Did you succeed to solve the problem ?
If yes, please let me know, in order to close the thread.
Mar 21 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by TheKeith | last post: by
28 posts views Thread by Benjamin Niemann | last post: by
3 posts views Thread by Dexsquab Molutinator via AccessMonster.com | last post: by
6 posts views Thread by Marc Jennings | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.