<!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> 2) To not surprise developers with nonstandard XML processing (such as
CH> 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 <!--
Comments consumed --> 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=""><?xml version="1.0" encoding="UTF-8"?>
<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>>
<h:html>
<h:head><h:title>Raw XML View</h:title></h:head>
<h:body>
<h2>XML declaration: consumed<h2>
<h2>Processing instruction: consumed<h2>
<?xml-stylesheet href="funky.xsl" type="text/xml" alternate="yes"?>
<h2>CDATA section: consumed<h2>
<![CDATA[ <p>This is CDATA</p> ]]>
<h2>Comments: consumed<h2>
<!-- comments consumed -->
<h:form prependId="false" id="form">
<h:panelGrid id="grid" column="2">
<h:outputText id="text" value="hello" />
<h:commandButton id="button" value="reload" />
</h:panelGrid>
<p>html template text</p>
</h:form>
</h:body>
</h:html>
</weNeedSomeRootElement>
</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"><cay.horstmann@gmail.com></a> said:
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">
CH> As I had understood it, the need for XML was motivated by these usecases:
CH> 1) To allow developers to use standard XML processing tools. In
CH> particular, this requires to be truthful about the nature of the
CH> documents (i.e. not claim that something is an XHTML file when it
CH> isn't, but is really an artifact that will eventually be transformed
CH> 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.
<?xml version="1.0" encoding="UTF-8"?>
<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>>
<h:html>
<h:head><h:title>Raw XML View</h:title></h:head>
<h:body>
<html:h2>XML declaration: consumed</html:h2>
<html:h2>Processing instruction: consumed</html:h2>
<?xml-stylesheet href="funky.xsl" type="text/xml" alternate="yes"?>
<html:h2>CDATA section: consumed</html:h2>
<![CDATA[ <p>This is CDATA</p> ]]>
<html:h2>Comments: consumed</html:h2>
<!-- comments consumed -->
<h:form prependId="false" id="form">
<h:panelGrid id="grid" column="2">
<h:outputText id="text" value="hello" />
<h:commandButton id="button" value="reload" />
</h:panelGrid>
<html:p>html template text</html:p>
</h:form>
</h:body>
</h:html>
</weNeedSomeRootElement>
CH> 2) To not surprise developers with nonstandard XML processing (such as
CH> processing comments).
I'm not sure what you mean here. XML processing instructions are
standard in XML.
</pre>
</blockquote>
<br>
</body>
</html>