Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Simple select question (newbie to xsl+xml) - Selecting from just one node at a time Simple select question (newbie to xsl+xml) - Selecting from just one node at a timeTo: NULL Date: 2/6/2008 8:04:00 AM Hi all,
I have several nodes that are identical. They each have a properties
X:
<nodes>
<node>
<X>one</X>
<X>two</X>
</node>
<node>
<X>aaa</X>
<X>bbb</X>
<node>
</nodes>
In my xsl I have
<xsl:for-each select="//blah/nodes">
<nodes>
</node>
</xsl:for-each>
Which is fine for getting each of the nodes out, but problem arises
when I try to take out X properties of the individual node in
transform.
I keep getting all values of all X properties in each node by using
<xsl:for-each select="//X">:
nodes>
<node>
<Xs>
<X>aaa</X>
<X>bbb</X>
<X>one</X>
<X>two</X>
</Xs>
</node>
<node>
<Xs>
<X>aaa</X>
<X>bbb</X>
<X>one</X>
<X>two</X>
</Xs>
<node>
</nodes>
I'm very new to xsl, haven't been able to find the solution (not even
not sure of the terminology).
Thank you for your help,
C
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
