[jdom-interest] Any sign of 1.1?

Mattias Jiderhamn mj-lists at expertsystems.se
Wed Oct 25 09:21:51 PDT 2006


At 2006-10-25 17:45, Victor Toni wrote:
>Mary Ellen Foster wrote:
> > I just -- for approximately the zillionth time, on yet another
> > computer -- downloaded and compiled JDOM from cvs, because of a bug to
> > do with XSLT and namespaces that's in the 1.0 release and that always
> > hits me. This reminded me: wasn't there some talk a while ago about
> > creating a 1.1 release with all of the various bug-fixes that have
> > accumulated since 1.0? Is that still in the pipeline?
> >
> > Thanks,
> >
> > MEF
> >
>
>Could you show us your solution for the issue you found?

I posted a patch about a year ago. I think the final version is 
below. It is also commited to CVS.

Jason said he'd try to get 1.0.1 out during the x-mas holidays. Maybe 
he meant this x-mas... ;-)




Index: src/java/org/jdom/input/SAXHandler.java
===================================================================
RCS file: /home/cvspublic/jdom/src/java/org/jdom/input/SAXHandler.java,v
retrieving revision 1.71
diff -u -r1.71 SAXHandler.java
--- src/java/org/jdom/input/SAXHandler.java     11 Dec 2004 02:18:55 
-0000      1.71
+++ src/java/org/jdom/input/SAXHandler.java     22 Nov 2005 07:30:26 -0000
@@ -560,7 +560,11 @@
                  continue;
              }

-            if (!attQName.equals(attLocalName)) {
+            if ("".equals(attLocalName) && attQName.indexOf(":") == -1) {
+                attribute = factory.attribute(attQName, atts.getValue(i),
+                                              attType);
+                       }
+            else if (!attQName.equals(attLocalName)) {
                  String attPrefix = attQName.substring(0, 
attQName.indexOf(":"));
                  Namespace attNs = Namespace.getNamespace(attPrefix,
                                                           atts.getURI(i));





More information about the jdom-interest mailing list