RE: Non-defined elements in XInclude namespace

At 4:13 PM -0800 1/9/03, Jonathan Marsh wrote:

>Our intention is that it be a fatal error.  Here is the actual text I
>placed in the spec:
>
>"The content of the xi:include element may include a single xi:fallback
>element; other elements from the XInclude namespace result in a fatal
>error. Other content (text, processing instructions, comments, elements
>not in the XInclude namespace) is not constrained by this specification
>and is ignored by the XInclude processor, that is, it has no effect on
>include processing, and does not appear in the [children] properties of
>the result infoset. Such content might be used by applications analyzing
>a pre-inclusion infoset, or be made available to an application
>post-inclusion through means other than the normal infoset properties."

That wording resolves my concerns. Thanks!

>>  Also, this makes me wonder about elements in the XInclude namespace
>>  other than include and fallback that do not appear inside an
>>  xi:include element. For example, xi:some-user-element. My reading of
>>  the current spec is that these are simply passed along like any other
>>  element, but perhaps you wish to tighten that up and make these fatal
>>  errors too (or perhaps not). I know these are edge cases but that's
>>  what make spec writing tough. :-)
>
>Our intention is that these are fatal errors, which is inherent (though
>not explicit) in the wording of our resolution.

I would prefer this to be explicit.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|           Processing XML with Java (Addison-Wesley, 2002)          |
|              http://www.cafeconleche.org/books/xmljava             |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

Received on Thursday, 9 January 2003 22:45:51 UTC