From: Elliotte Rusty Harold <elharo@me...> - 2002-10-29 14:56:10
According to the extensibility page in the docs for Saxon 6.5.2:
When a ContentHandler is used, Saxon will by default always supply a
stream of events corresponding to a well-formed document. (The XSLT
specification also allows the output to be an external general parsed
entity.) If the result tree is not well-formed, Saxon will notify the
content handler of the fact by sending a processing instruction with the
name "saxon:warning" and the text "Output suppressed because it is not
well-formed". If the content handler is happy to accept output that is
not well-formed, it can respond to this processing instruction by
throwing a SAXException whose message text is "continue"; in this case
subsequent events will be notified whether or not they are well-formed.
However, <?saxon:warning Output suppressed because it is not
well-formed?> is not namespace well-formed as indicated by section 6 of
the Namespaces 1.0 spec:
* No entity names, PI targets, or notation names contain any colons.
There is an erratum on this section, but it does not remove this
I noticed this when attempting to use TrAX and Saxon 6.5.2 to transform
a XOM document, and my output barfed on the colonized PI. I suggest the
target of this PI be changed to saxon-warning or something similar.
Elliotte Rusty Harold