Re: [xslt] name() = localname() ?
- From: Mark_Vakoc peoplesoft com
- To: xslt gnome org
- Subject: Re: [xslt] name() = localname() ?
- Date: Fri, 26 Mar 2004 11:45:32 -0700
> 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]