Here I come again :) For the last time tonight (I hope) :)
I see a strange behaviour of the SAXParser when I parse this document:
?xml version="1.0"?>
<!DOCTYPE document [
<!ENTITY nbsp "@">
]>
<document>
<test value=" "/>
</document>
What happens on the sax? Here is a "trace" of the combined content and
lexical handlers installed:
setDocumentLocator
startDocument
startDTD name="document" publicId=(null) systemId=(null)
endDTD
startElement uri="" loc="document" raw="document"
characters [
]
startEntity name="nbsp"
endEntity name="nbsp"
startElement uri="" loc="test" raw="test"
+ attribute uri="" loc="value" raw="value" typ="CDATA" val="@"
endElement uri="" loc="test" raw="test"
characters [
]
endElement uri="" loc="document" raw="document"
endDocument
You see? before I see the notification of the "test" element, I receive
notification of an entity with no body called "nbsp", the entity I have
as an attribute in the test element.
Done bothering for today (probably!)
Pier
--
--------------------------------------------------------------------
- P I E R -
stable structure erected over water to allow the docking of seacraft
<mailto:[EMAIL PROTECTED]> <http://www.betaversion.org/~pier/>
--------------------------------------------------------------------
- ApacheCON Y2K: Come to the official Apache developers conference -
-------------------- <http://www.apachecon.com> --------------------