Using XSLT, I need to locate the tag element from an XML file to start doing the wanted transformations. The tag element is typically the root element.
<tag>
...
</tag>
However, a new collection of XML files arrived and some of them have the tag element somewhere else. (its location vary from file to file)
<a>
<b>
<tag>
...
</tag>
</b>
</a>
I would like to know if its possible to obtain the full path/name of tag and store it into a variable, so I could use $tagPath instead of /a/b/tag. I tried using the name() function but it only returns the element name (tag).
Thanks!