[jdom-interest] RE: jdom-interest Digest, Vol 52, Issue 1

Pete Keyes PKeyes at starbucks.com
Sat Mar 21 14:05:19 PDT 2009


Your problem w/ XInclude is the sax parser, not jdom.  Jdom knows nothing about XInclude - Xerces or whatever sax parser you use owns that knowledge.

....Pete

-----Original Message-----
From: "jdom-interest-request at jdom.org" <jdom-interest-request at jdom.org>
To: "jdom-interest at jdom.org" <jdom-interest at jdom.org>
Sent: 3/21/2009 12:49 PM
Subject: jdom-interest Digest, Vol 52, Issue 1


Send jdom-interest mailing list submissions to
        jdom-interest at jdom.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.jdom.org/mailman/listinfo/jdom-interest
or, via email, send a message with subject or body 'help' to
        jdom-interest-request at jdom.org

You can reach the person managing the list at
        jdom-interest-owner at jdom.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of jdom-interest digest..."


Today's Topics:

   1. xinclude and jdom? (Georg)
   2. XML Element name Verifier is overly strict and    doesn't match
      current XML 1.0 REC (Klotz, Leigh)
   3. Testing the list (Jason Hunter)
   4. Test #2 (Jason Hunter)
   5. Test Mailing List (Bradley S. Huffman)
   6. testing the list (Ethan Burnside)


----------------------------------------------------------------------

Message: 1
Date: Fri, 6 Mar 2009 16:24:59 +0100
From: Georg <gwk.rko at googlemail.com>
Subject: [jdom-interest] xinclude and jdom?
To: jdom-interest at jdom.org
Message-ID:
        <5b9e71800903060724k6feafa37id365f113b4847fb1 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I tried getting xinclude to work with jdom, but failed.

On referencing the xinclude namespace like this in my root tag:

<myroottag xmlns:xi="xmlns:xi="http://www.w3.org/2001/XInclude">

the parser took 'xmlns:xi' as an attribute, and consequently failed
validation :(

I also tried with validation turned off, but then it didn't recognize the
real include,

<xi:include href="somewhere.xml"/>

instead it parsed 'xi:include' as a regular element :(

What's wrong here?

--
Regards,
Georg.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20090306/3e8f962e/attachment-0001.htm

------------------------------

Message: 2
Date: Thu, 19 Mar 2009 14:50:34 -0700
From: "Klotz, Leigh" <Leigh.Klotz at xerox.com>
Subject: [jdom-interest] XML Element name Verifier is overly strict
        and     doesn't match current XML 1.0 REC
To: <jdom-interest at jdom.org>
Message-ID:
        <E254B0A7E0268949ABFE5EA97B7D0CF4074DF21E at USA7061MS01.na.xerox.net>
Content-Type: text/plain;       charset="US-ASCII"

JDOM 1.1 won't create elements whose characters are in the following
ranges:
  Unicode 0xFF41-0xFF5A (FULLWIDTH LATIN SMALL LETTER A to FULLWIDTH
LATIN SMALL LETTER Z)
  Unicode 0xFF21-0xFF3A (FULLWIDTH LATIN CAPITAL LETTER A to FULLWIDTH
LATIN CAPITAL LETTER Z)

The JDOM 1.1 source for org.jdom.Verifier.isXMLLetter cites production
84 of the XML 1.0 Recommendation for its table of allowed characters.

However, according to http://www.w3.org/TR/REC-xml/ the whole of
Appendix B (which contains Production 84) is obsolete and is not used
within the recommendation.  The XML Rec instead uses production [4] for
NameStartChar and [5] for NameChar.

The productions at [4] and [5] are considerably smaller than those of
Appendix B, and are more inclusive, providing for greater utility in
I18N applications of XML.

Furthermore, according to http://www.w3.org/TR/REC-xml/ Appendix J
(Non-Normative), the characters I menition above are not only allowed,
but encouraged for use in XML Names, because the Unicode ID_Start
property and ID_Continue of these Unicode code points is True.

The XML REC says:

    1. The first character of any name should have a Unicode property of
ID_Start, or else be '_' #x5F.
    2. Characters other than the first should have a Unicode property of
ID_Continue, or ...

You can see that ID_Start and ID_Continue are True on the individual
pages for the small letters here:
http://unicode.org/cldr/utility/character.jsp?a=FF41
to
http://unicode.org/cldr/utility/character.jsp?a=FF5A

I recommend that org.jdom.Verifier.isXMLLetter be updated to use
production [4], [4a], and [5] of XML 1.0 Fifth Edition.
It's quite likely that some of the other character class verifiers need
updating as well, but I didn't examine them.

Leigh.



------------------------------

Message: 3
Date: Thu, 19 Mar 2009 16:41:32 -0700
From: Jason Hunter <jhunter at servlets.com>
Subject: [jdom-interest] Testing the list
To: jdom interest <jdom-interest at jdom.org>
Message-ID: <21093358-EF5D-46DD-9159-DA3279B71DBC at servlets.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed

It appears we have a list problem.  Testing.

-jh-



------------------------------

Message: 4
Date: Thu, 19 Mar 2009 19:22:22 -0700
From: Jason Hunter <jhunter at servlets.com>
Subject: [jdom-interest] Test #2
To: jdom interest <jdom-interest at jdom.org>
Message-ID: <34484948-8987-4ADD-B641-5D3A543C2B5C at servlets.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed

Working to unstick the list.  Here's a second test.

-jh-



------------------------------

Message: 5
Date: Fri, 20 Mar 2009 11:33:55 -0500
From: "Bradley S. Huffman" <hip at a.cs.okstate.edu>
Subject: [jdom-interest] Test Mailing List
To: jdom-interest at jdom.org
Cc: hip at a.cs.okstate.edu
Message-ID: <20090320163355.367F2154C55 at a.cs.okstate.edu>

>From the xml-dev mailing list:

> JDOM is pretty mature and I've been happy with it for a couple of years
> now.
> But I remain worried that the JDOM mailing list is broken. =20
> We can't even know how many messages and bug reports were lost, and it
> doesn't bode well for the future.

Let's just see if it's broken.

Brad


------------------------------

Message: 6
Date: Fri, 20 Mar 2009 16:39:52 -0700
From: Ethan Burnside <burnside at kattare.com>
Subject: [jdom-interest] testing the list
To: jdom-interest at jdom.org
Message-ID: <49C42948.7020709 at kattare.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

testing the list

--

  --------------------------------------------------
   Ethan Burnside - Principal, Kattare I/S
   Email: burnside at kattare.com
   Web: http://www.kattare.com
   Phone: 1.877.KATTARE
   FAQ: http://www.kattare.com/docs/faq_browse.kvws
  --------------------------------------------------


------------------------------

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com

End of jdom-interest Digest, Vol 52, Issue 1
********************************************



More information about the jdom-interest mailing list