Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - getting name and value of tag in an XML. >Thread Next - Re: getting name and value of tag in an XML. Re: getting name and value of tag in an XML.To: NULL Date: 7/2/2005 12:54:00 PM titusjava@y... 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
