Dave Flynn

Greenhorn
+ Follow
since May 09, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dave Flynn

My XML looks like this:

<A name"alpha">
<B id="0">zero</B>
<B id="1">one</B>
</A>

What I want to output is this:

alpha:zero
alpha:one

If I use some XSL to style this...

<xsl:for-each select="A\B">
<xsl:value-of select="???" />:<xsl:value-of select="." />
</xsl:for-each>

...what do I use in ??? to select the parent attribute @name? What if B has an attribute @name too? Are there any other ways to do this that you can think of?

*had to disable similies :P
[This message has been edited by Dave Flynn (edited May 09, 2001).]