You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jy...@apache.org on 2004/02/20 21:32:51 UTC
cvs commit: xml-xalan/java/src/org/apache/xml/utils PrefixResolverDefault.java
jycli 2004/02/20 12:32:51
Modified: java/src/org/apache/xml/utils PrefixResolverDefault.java
Log:
Fix for bugzilla bug report 24979
Fix for DOM XPath API, any element has an implicit declaration of its own
prefix, which is enforced during namespace serialization
Reviewed by Morris Kwan (mkwan@ca.ibm.com)
Revision Changes Path
1.9 +3 -1 xml-xalan/java/src/org/apache/xml/utils/PrefixResolverDefault.java
Index: PrefixResolverDefault.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/PrefixResolverDefault.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- PrefixResolverDefault.java 17 Feb 2004 04:21:14 -0000 1.8
+++ PrefixResolverDefault.java 20 Feb 2004 20:32:51 -0000 1.9
@@ -95,6 +95,8 @@
{
if (type == Node.ELEMENT_NODE)
{
+ if (parent.getNodeName().indexOf(prefix+":") == 0)
+ return parent.getNamespaceURI();
NamedNodeMap nnm = parent.getAttributes();
for (int i = 0; i < nnm.getLength(); i++)
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org