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

Pete Keyes <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
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: "[email protected]" <[email protected]>
To: "[email protected]" <[email protected]>
Sent: 3/21/2009 12:49 PM
Subject: jdom-interest Digest, Vol 52, Issue 1


Send jdom-interest mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

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 <[email protected]>
Subject: [jdom-interest] xinclude and jdom?
To: [email protected]
Message-ID:
        <[email protected]>
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" <[email protected]>
Subject: [jdom-interest] XML Element name Verifier is overly strict
        and     doesn't match current XML 1.0 REC
To: <[email protected]>
Message-ID:
        <E254B0A7E0268949ABFE5EA97B7D0CF4074DF21E@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 <[email protected]>
Subject: [jdom-interest] Testing the list
To: jdom interest <[email protected]>
Message-ID: <[email protected]>
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 <[email protected]>
Subject: [jdom-interest] Test #2
To: jdom interest <[email protected]>
Message-ID: <[email protected]>
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" <[email protected]>
Subject: [jdom-interest] Test Mailing List
To: [email protected]
Cc: [email protected]
Message-ID: <[email protected]>

>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 <[email protected]>
Subject: [jdom-interest] testing the list
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

testing the list

--

  --------------------------------------------------
   Ethan Burnside - Principal, Kattare I/S
   Email: [email protected]
   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/[email protected]

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

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.