[Home] [By Thread] [By Date] [Recent Entries]


At 8:25 PM -0500 3/1/02, Simon St.Laurent wrote:


>And next, does anyone know how/if Canonical XML and XInclude get along?
>http://www.w3.org/TR/xml-c14n
>http://www.w3.org/TR/xinclude/
>

Simple. Canonical XML knows nothing about XInclude.  (Actually, it's 
based on XPath 1.0, which also knows nothing about XInclude.)  When a 
canonicalizer is presented with a document in which some elements 
look like <xinclude:include href="someURL"/> it treats these elements 
exactly like it treats any other element.  It associates no special 
semantics with them. It most definitely does *not* resolve XIncludes.

You may, perhaps, choose to resolve the XIncludes in document A, thus 
producing a new document B.  You may then canonicalize document B. 
However, what you get is *not* the canonical form of document A.  It 
is the canonical form of the new document B.  (These would only be 
equal in the trivially uninteresting case where document A does not 
contain any XInclude elements.)
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|             http://www.cafeconleche.org/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member