RE: unescape-markup - support for text/xml

> Section 7.1.25 (p:unescape markup) says:
> 
> "All implementations must support the content type 
> application/xml, and
> must use a standard XML parser for it. It is a dynamic error
> (err:XC0051) if the content-type specified is not supported by the
> implementation."
> 
> Shouldn't the implementations be required to support also text/xml and
> not only application/xml?
> 

Three more questions:

1. Shouldn't it be an error if the document element contains anything
else than text content?
2. What error should be reported if the unescaped content does not
represent well-formed XML or cannot be parsed?
3. What should happen if the document element already specifies a
default namespace and the 'namespace' option is provided on
p:unescape-markup?

Regards
Vojtech

Received on Monday, 28 April 2008 08:25:02 UTC