R
Ravi
I am new to XSL. I have a XML document something like
<abc>
xyz
<def> 1 </def>
<def> 2 </def>
<def> 3 </def>
<def> 4 </def>
<def> 5 </def>
</abc>
I am trying to get the value of the abc node which in this case is xyz.
However if I try to get the value using <xsl:value-of select="."/> in a
template matching abc I get
xyz 1 2 3 4 5
which is not what I want. Is there someway to select only the value of
the parent node and then display each child node's value on say a
separate line? I tried using concat and substring-before and though it
works its not a good solution as I do not know how many children abc has
in advance (besides being very laborious). Any suggestions will be
highly appreciated.
TIA.
<abc>
xyz
<def> 1 </def>
<def> 2 </def>
<def> 3 </def>
<def> 4 </def>
<def> 5 </def>
</abc>
I am trying to get the value of the abc node which in this case is xyz.
However if I try to get the value using <xsl:value-of select="."/> in a
template matching abc I get
xyz 1 2 3 4 5
which is not what I want. Is there someway to select only the value of
the parent node and then display each child node's value on say a
separate line? I tried using concat and substring-before and though it
works its not a good solution as I do not know how many children abc has
in advance (besides being very laborious). Any suggestions will be
highly appreciated.
TIA.