T
tuka
Hi,
I have a problem I would like help solving:
My xml:
<node id=1>
<nodeContent>xyz</nodeContent>
</node>
<node id=2>
<nodeContent>xyz2</nodeContent>
</node>
<node id=3>
<nodeContent>xyz3</nodeContent>
</node>
<node id=4>
<nodeContent>xyz4</nodeContent>
</node>
I would like to use xslt to apply a <div> tag between the 2nd and 4th
tag so that my the output will be
<div>
xyz2
xyz3
xyz4
</div>
I have tried using something like
<xsl:template match=""> </xsl:template> but it seems that I cannot
set an opening div tag for 2 and a closing div tag for node 4 without
errors. i.e. the xml withing the xsl:template tag must be well
formed... Not much luck with if tags either...
TIA
I have a problem I would like help solving:
My xml:
<node id=1>
<nodeContent>xyz</nodeContent>
</node>
<node id=2>
<nodeContent>xyz2</nodeContent>
</node>
<node id=3>
<nodeContent>xyz3</nodeContent>
</node>
<node id=4>
<nodeContent>xyz4</nodeContent>
</node>
I would like to use xslt to apply a <div> tag between the 2nd and 4th
tag so that my the output will be
<div>
xyz2
xyz3
xyz4
</div>
I have tried using something like
<xsl:template match=""> </xsl:template> but it seems that I cannot
set an opening div tag for 2 and a closing div tag for node 4 without
errors. i.e. the xml withing the xsl:template tag must be well
formed... Not much luck with if tags either...
TIA