Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM 1.0 alpha 4

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: "Bradley S. Huffman" <hip AT cs.okstate.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XOM 1.0 alpha 4
  • Date: Wed, 21 Jul 2004 14:57:48 -0400

At 9:55 AM -0500 7/21/04, Bradley S. Huffman wrote:
BTW, what is the nasty bug with FIXED attribute values in the internal DTD?


Imagine you have a document like this one:

<!DOCTYPE root [
<!ATTLIST a b CDATA #FIXED "c">
]>
<root/>

If you build from that and reserialize, then what you get is this:

<!DOCTYPE root [
<!ATTLIST a b CDATA #FIXED"c">
]>
<root/>

The white space between #FIXED and the value is lost so the document is no longer well-formed. Once I noticed the problem the fix was trivial. A corrected version is in CVS along with a unit test.

I noticed this yesterday when working through the examples in the Microsoft OASIS XSLT test suite. That it took this long to notice it indicates that it's not a very common problem in practice.
--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml
http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA




Archive powered by MHonArc 2.6.24.

Top of Page