I have a XSLT that looks like the following:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="<xsl
utput method="html"/>
<xsl:template match="//MainHeader/MasterElement">
<xsl:apply-templates select="MainElement"/>
</xsl:template>
<xsl:template match="MainElement">
<xsl:value-of select="Description"/>
</xsl:template>
</xsl:stylesheet>
My XML Look like this
<MainHeader>
<MasterElement>
<MainElement>
<Description>Some Value</Description>
</MainElement>
</MasterElement>
</MainHeader>
Given the above XSLT, currently all elements show up when I transform the XML to HTML. I just want the description that I specified. Any Help.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="<xsl
<xsl:template match="//MainHeader/MasterElement">
<xsl:apply-templates select="MainElement"/>
</xsl:template>
<xsl:template match="MainElement">
<xsl:value-of select="Description"/>
</xsl:template>
</xsl:stylesheet>
My XML Look like this
<MainHeader>
<MasterElement>
<MainElement>
<Description>Some Value</Description>
</MainElement>
</MasterElement>
</MainHeader>
Given the above XSLT, currently all elements show up when I transform the XML to HTML. I just want the description that I specified. Any Help.