W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2008

[Bug 5433] SER: descendants of an XML island

From: <bugzilla@wiggum.w3.org>
Date: Mon, 28 Jan 2008 11:04:29 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1JJRmv-0008Qv-Ne@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5433

           Summary: SER: descendants of an XML island
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Serialization
        AssignedTo: zongaro@ca.ibm.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


Consider the serialization of:
declare namespace foo = "http://www.example.org/";
<html>
  <body>
    <p>
      <span>This will not be CDATA</span>
    </p>
    <foo:xml-island>
      <foo:span>This will not be CDATA</foo:span>
      <span>Will this be CDATA?</span>
      <foo:br />
      <br />
    </foo:xml-island>
  </body>
</html>

with serialization parameters:

method="html"
cdata-section-elements="span"

1.  Should all descendants of foo:xml-island be output as if they were
serialized as XML 1.0? 
2.  Should the <span> which is a descendant of foo:xml-island be output as c
CDATA section?

The serialization specification states that:

"The HTML output method MUST NOT output an element differently from the XML
output method unless the expanded QName of the element has a null namespace
URI. [Definition: An element whose expanded QName has a non-null namespace URI
MUST be output as XML. This is known as an XML Island.] "

and

"The cdata-section-elements parameter is not applicable to the HTML output
method, except in the case of XML Islands."

>From this, I'd assume that the asnwers to (1) and (2) above are both false, but
if this is the then an XML island will not necessarily be serialized as well
formed XML.  Is my understanding correct?
Received on Monday, 28 January 2008 11:04:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:49 GMT