[Home] [By Thread] [By Date] [Recent Entries]
Thank you for your prompt response. I'm quite sure that JDOM is
signalling the error, having looked at the code, the documentation, and
the mailing list.
Here's the documentation for the Verifier method that the
org.jdom.Element constructor uses:
"This is a utility function for determining whether a specified
character is a letter
according to production 84 of the XML 1.0 specification."
http://www.jdom.org/docs/apidocs/org/jdom/Verifier.html#isXMLLetter(char
)
JDOM presentation material cites it as a feature over other interfaces,
which don't keep you from producing bad documents.
The source code for org.jdom.Verifier bears the documentation out:
public static boolean isXMLLetter(char c) {
// Note that order is very important here. The search proceeds
// from lowest to highest values, so that no searching occurs
// above the character's value. BTW, the first line is
equivalent to:
// if (c >= 0x0041 && c <= 0x005A) return true;
if (c < 0x0041) return false; if (c <= 0x005a) return true;
if (c < 0x0061) return false; if (c <= 0x007A) return true;
if (c < 0x00C0) return false; if (c <= 0x00D6) return true;
if (c < 0x00D8) return false; if (c <= 0x00F6) return true;
if (c < 0x00F8) return false; if (c <= 0x00FF) return true;
if (c < 0x0100) return false; if (c <= 0x0131) return true;
... on for a couple of hundred more lines ...
It appears that JDOM hasn't been updated for XML 1.0 Fifth Edition.
In this case, the cited production [84] in XML 1.0 is now deprecated and
unused within the REC. The new productions [4] and [5] are simpler and
more inclusive.
It was when sending a message about this issue that I noticed that the
JDOM archives haven't been gotten any new mail since January, etc.
My own message (attached) didn't show up either, and I've been a list
member for a long time.
Leigh.
>
> -----Original Message-----
> From: Michael Kay [mailto:mike@s...]
> Sent: Thursday, March 19, 2009 4:24 PM
> To: Klotz, Leigh; xml-dev@l...
> Subject: RE: Whither JDOM?
>
> I'd be very surprised if JDOM cares what it finds in an element name:
I suspect that if the XML parser accepts XML 1.05 style names, then JDOM
will accept them too. But I might be wrong. Do you have any evidence to
the contrary?
>
> Michael Kay
> http://www.saxonica.com/
>
> > -----Original Message-----
> > From: Klotz, Leigh [mailto:Leigh.Klotz@x...]
> > Sent: 19 March 2009 23:16
> > To: xml-dev@l...
> > Subject: Whither JDOM?
> >
> > I sent a note to the jdom-interest list about JDOM and XML 1.0 (5th)
> > production rules for element names, and noticed it didn't make it to
> > the archives. Then I noticed nothing's new in the archives since
> > January.
> > A few quick web searches turned up no tea-leaf reading, and I didn't
> > see any discussion here either.
> >
> > So, anybody have ideas what's going on, and if it's nothing good,
for
> > the prospects of getting JDOM updated?
> >
> > Leigh.
--- Begin Message ---
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



