ti*******@yahoo.com wrote:
I would like to know, is any easy way to getname of the XML tag and
value of the XML tag inside a <xsl:foreach> loop.
XSLT uses XPath so check out an XPath reference for functions and you
will find functions like
local-name()
name()
namespace-uri()
to get the name or parts of it.
As for the value in terms of XSLT
<xsl:value-of select="." />
gives you what XSLT understands to be the value.
Or specify exactly what you understand to be the "value of an XML tag",
it is not clear what you are looking for.
--
Martin Honnen
http://JavaScript.FAQTs.com/