I have an XML source and from where I fetch one of the element value using XSL file. But the problem I am facing is that, instead of getting only one value from the source XML, I am getting the valus of all the elements in the source XML. If I remove the 'namespace' attribute in the document element of the source XML, I am getting the value correctly. Could someone pls help me why it is happening so?
XML file
<HR>
<?xml version="1.0"?>
<GetArticle xmlns="com:
test eveloper"
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" version="1.0"
xml:lang="en">
<Control>
<SessionID>WlpaWlpaaMjAwMTE </SessionID>
</Control>
<Request>
<AccessionNoDetails>
<AccessionNo>ppgz000020</AccessionNo>
<Scope>FULL</Scope>
</AccessionNoDetails>
</Request>
</GetArticle>
<HR>
XSL
<HR>
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl
utput method="html"/>
<xsl:template match="/">
<TABLE BORDER="1">
<TR>
<TD> <I>TEST</I> </TD>
</TR>
<TR>
<TD> <B> ROW 1 </B> </TD>
</TR>
<TR>
<TD> <B> <xsl:apply-templates/></B> </TD>
</TR>
</TABLE>
</xsl:template>
<xsl:template match="GetArticle/Control">
<xsl:value-of select="SessionID"/>
</xsl:template>
<xsl:template match="GetArticle/Request">
</xsl:template>
</xsl:stylesheet>