Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Inconsistent xml:id sanity checks

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Inconsistent xml:id sanity checks
  • Date: Tue, 28 Mar 2006 19:31:59 -0500

I've been having trouble making up my mind about this one. At the moment though here's my *tentative* decision:

1. Requiring ID type attributes to be NCNames is a validity constraint.

2. XOM does not generally enforce validity constraints.

3. Therefore XOM is simply never going to check whether xml:id attribute values are or are not NCNames.

On the other side, I still feel that assigning a non-NCName as an ID value is likely a mistake and perhaps should be flagged; so if anyone feels strongly this is the wrong decision, speak up. There's a very good chance you can change my mind about this and restore the current stricter behavior if that's what anyone wants.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page