morten 01/10/31 08:00:10
Modified: java/src/org/apache/xalan/xsltc/compiler Mode.java
Log:
Fixed pattern matching on namespace qualified wildcards, such
as match="@blob:*".
PR: bugzilla 2582
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.16 +3 -3
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Mode.java
Index: Mode.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Mode.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- Mode.java 2001/10/31 09:47:00 1.15
+++ Mode.java 2001/10/31 16:00:10 1.16
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Mode.java,v 1.15 2001/10/31 09:47:00 morten Exp $
+ * @(#)$Id: Mode.java,v 1.16 2001/10/31 16:00:10 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -537,7 +537,7 @@
* Auxillary method to determine if a qname describes an
attribute/element
*/
private static boolean isAttributeName(String qname) {
- final int col = qname.indexOf(':') + 1;
+ final int col = qname.lastIndexOf(':') + 1;
if (qname.charAt(col) == '@')
return(true);
else
@@ -682,10 +682,10 @@
if (nsElem != null) elemNamespaceHandle = nsElem.getStart();
// (*) Handle templates with "ns:@*" pattern
+ InstructionHandle attrNamespaceHandle = ihAttr;
InstructionList nsAttr = compileNamespaces(classGen, methodGen,
isNamespace, isAttribute,
true, ihAttr);
- InstructionHandle attrNamespaceHandle = ihAttr;
if (nsAttr != null) attrNamespaceHandle = nsAttr.getStart();
// (*) Handle templates with "ns:elem" or "ns:@attr" pattern
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]