OK, then it might be possible that irrespective of my namespace declaration in the xml document iteself,
java code might be cropping this namespace before passing this XSL transformation then select="./ancestor::*[namespace-uri()='http://xyz.com']" won't work. Am I right?
One more query, above syntax is for selecting node based on a particular namespace but what will be syntax for selecting a node (might be namespace node) based on namespaced attribute lets say for selecting the below nodes...
<n1:sampleElement1 n1:attrib1='true'/>
<sampleEelement2 n1:attrib1='true' />
can we catch both nodes in a single syntax or two different approach?
Thanks.