<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Ed,<br>
    <br>
    I read this the same way as you did originally, but Cay actually
    wrote<br>
    <br>
    <pre wrap="">CH&gt; 2) To not surprise developers with nonstandard XML processing (such as
CH&gt; processing <b>comments</b>).
</pre>
    <br>
    [Emphasis mine]<br>
    <br>
    So I think that Cay is either talking about the general issue of
    comments being passed through, especially since he has his &lt;!--
    Comments consumed --&gt; example.<br>
    <br>
    I also suspect that instead of saying "*all* elements prefixed", he
    really means that all generated DOM elements have a valid namespace
    either through prefixing or through the page author specifying
    default namespaces:<br>
    <br>
    <pre wrap="">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;weNeedSomeRootElement
   <b>xmlns</b>= <a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>
   xmlns:h=<a class="moz-txt-link-rfc2396E" href="http://java.sun.com/jsf/html">"http://java.sun.com/jsf/html"</a>&gt;
    &lt;h:html&gt;
        &lt;h:head&gt;&lt;h:title&gt;Raw XML View&lt;/h:title&gt;&lt;/h:head&gt;
    &lt;h:body&gt;
&lt;h2&gt;XML declaration: consumed&lt;h2&gt;
&lt;h2&gt;Processing instruction: consumed&lt;h2&gt;
&lt;?xml-stylesheet href="funky.xsl" type="text/xml" alternate="yes"?&gt;
&lt;h2&gt;CDATA section: consumed&lt;h2&gt;
&lt;![CDATA[ &lt;p&gt;This is CDATA&lt;/p&gt; ]]&gt;
&lt;h2&gt;Comments: consumed&lt;h2&gt;
&lt;!-- comments consumed --&gt;
            &lt;h:form prependId="false" id="form"&gt;
                &lt;h:panelGrid id="grid" column="2"&gt;
                  &lt;h:outputText id="text" value="hello" /&gt;
                  &lt;h:commandButton id="button" value="reload" /&gt;
                &lt;/h:panelGrid&gt;
                &lt;p&gt;html template text&lt;/p&gt;
            &lt;/h:form&gt;
        &lt;/h:body&gt;
&lt;/h:html&gt;
&lt;/weNeedSomeRootElement&gt;
</pre>
    One of the other aspects shown in Cay's example is that the
    xml-stylesheet processing instruction would be consumed by the
    Facelets engine, NOT the browser.<br>
    <br>
    -- Blake Sullivan<br>
    <br>
    <br>
    On 10/22/10 8:02 AM, Ed Burns wrote:
    <blockquote cite="mid:19649.42894.840194.209372@gargle.gargle.HOWL"
      type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <blockquote type="cite">
            <blockquote type="cite">
              <blockquote type="cite">
                <pre wrap="">On Fri, 22 Oct 2010 09:23:33 +0700, Cay Horstmann <a class="moz-txt-link-rfc2396E" href="mailto:cay.horstmann@gmail.com">&lt;cay.horstmann@gmail.com&gt;</a> said:
</pre>
              </blockquote>
            </blockquote>
          </blockquote>
        </blockquote>
      </blockquote>
      <pre wrap="">
CH&gt; As I had understood it, the need for XML was motivated by these usecases:
CH&gt; 1) To allow developers to use standard XML processing tools. In
CH&gt; particular, this requires to be truthful about the nature of the
CH&gt; documents (i.e. not claim that something is an XHTML file when it
CH&gt; isn't, but is really an artifact that will eventually be transformed
CH&gt; into XHTML)

...and the most important manifestation of that, in my opinion, is the
requirement to have *all* elements prefixed.  For example, a proper JSF
XML Syntax View would look like this.

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;weNeedSomeRootElement
   xmlns:html=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>
   xmlns:h=<a class="moz-txt-link-rfc2396E" href="http://java.sun.com/jsf/html">"http://java.sun.com/jsf/html"</a>&gt;
    &lt;h:html&gt;
        &lt;h:head&gt;&lt;h:title&gt;Raw XML View&lt;/h:title&gt;&lt;/h:head&gt;
    &lt;h:body&gt;
&lt;html:h2&gt;XML declaration: consumed&lt;/html:h2&gt;
&lt;html:h2&gt;Processing instruction: consumed&lt;/html:h2&gt;
&lt;?xml-stylesheet href="funky.xsl" type="text/xml" alternate="yes"?&gt;
&lt;html:h2&gt;CDATA section: consumed&lt;/html:h2&gt;
&lt;![CDATA[ &lt;p&gt;This is CDATA&lt;/p&gt; ]]&gt;
&lt;html:h2&gt;Comments: consumed&lt;/html:h2&gt;
&lt;!-- comments consumed --&gt;
            &lt;h:form prependId="false" id="form"&gt;
                &lt;h:panelGrid id="grid" column="2"&gt;
                  &lt;h:outputText id="text" value="hello" /&gt;
                  &lt;h:commandButton id="button" value="reload" /&gt;
                &lt;/h:panelGrid&gt;
                &lt;html:p&gt;html template text&lt;/html:p&gt;
            &lt;/h:form&gt;
        &lt;/h:body&gt;
&lt;/h:html&gt;
&lt;/weNeedSomeRootElement&gt;

CH&gt; 2) To not surprise developers with nonstandard XML processing (such as
CH&gt; processing comments).

I'm not sure what you mean here.  XML processing instructions are
standard in XML.

</pre>
    </blockquote>
    <br>
  </body>
</html>