On Tuesday 30 July 2002 11:37 am, Noel J. Bergman wrote:
> Yes, xml:space="preserve" should work, and I'll give it a whirl.  The
> xml:space attribute may be used to indicate explicitly that white space is
> significant, which will apply to that element and any subelements that
> don't reset xml:space.
>
> However, my understanding is that white space is supposed to be significant
> by default in mixed content
> (http://www.w3.org/TR/REC-xml#sec-mixed-content) and insignificant in
> element content
> (http://www.w3.org/TR/REC-xml#sec-element-content), so why isn't it being
> preserved now?  Is it because there is no DTD?

The code that creates a Configuration object from an XML document 
(org.apache.avalon.framework.configuration.SAXConfigurationHandler) treats it 
as element content. There's really no way of knowing w/o a DTD.

If there is a way to determine if an element should be treated as mixed or 
element when processing the document via SAX2, that would also be a solution 
in cases where a DTD was present.
-pete

-- 
peter royal -> [EMAIL PROTECTED]

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to