morten 01/10/09 09:31:38
Modified: java/src/org/apache/xalan/xsltc/compiler xpath.cup
Log:
Updated the XPath parser. Unprefixed elements that were referenced in the
expressions in a stylesheet were given the default namespace instead of
the null-namespace.
PR: bugzilla 3343
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.22 +2 -3
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/xpath.cup
Index: xpath.cup
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/xpath.cup,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- xpath.cup 2001/10/09 12:08:09 1.21
+++ xpath.cup 2001/10/09 16:31:38 1.22
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: xpath.cup,v 1.21 2001/10/09 12:08:09 morten Exp $
+ * @(#)$Id: xpath.cup,v 1.22 2001/10/09 16:31:38 morten Exp $
*
* Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
*
@@ -85,8 +85,7 @@
return(NodeTest.ELEMENT);
else if (local.equals("@*"))
return(NodeTest.ATTRIBUTE);
- if (local.startsWith("@"))
- name = new QName(null,null,local);
+ name = new QName(null,null,local);
}
return axis == Axis.ATTRIBUTE
? _xsltc.registerAttribute(name)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]