Re: [xslt] name() = localname() ?



> I have a problem to get the namespace prefix of a node.
> name() and local-name() always give the same result but
> I want to get the node name with namespace prefix.

> Maybe somebody can help me how to do that.


I'm not positive but if the QName of an element without a prefix
declaration is the same as the localname.  Changing the source document to:
<test:test xmlns:test="http://test.com"/>

should get the desired result, if that is acceptable.








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]