I have an XML file in some format and want to convert it into another format.
The first format is :
<Project>
<Requirements>
<Source>
<Section>
<Requirement>
<Content>
this is I<sub>leakage</sub>
</Content>
<Title></Title>
<Property name="Status"/>
</Requirement>
</Section>
</Source>
</Requirements>
</Project>
And I'm using a template to change this sub tags into subscript tags
this is I<sub>leakage</sub>
to
this is I<subscript>leakage</subscript>
and I'm using this template to convert:
<xsl:template match="sub">
<Subscript>
<xsl:value-of select="current()/text()"/>
</Subscript>
</xsl:template>
problem is the template isn't working , Although if I put the sub tags out side the Requirement(for example under Section) it works fine.
Any ideas how to fix this ?