W3C home > Mailing lists > Public > www-xml-xinclude-comments@w3.org > February 2004

RE: missing href, parse="text", xpointer="something"

From: Jonathan Marsh <jmarsh@microsoft.com>
Date: Tue, 17 Feb 2004 15:37:00 -0800
Message-ID: <DF1BAFBC28DF694A823C9A8400E71EA202A14E19@RED-MSG-30.redmond.corp.microsoft.com>
To: "Elliotte Harold" <elharo@metalab.unc.edu>, <www-xml-xinclude-comments@w3.org>

We agree, and will clarify both that xpointer must only be present when
href is absent and parse="xml", and that xpointer must not be present
when parse="text".  (Expressing all these co-constraints in prose is
getting a little complicated but seems to ensure meaningful include

> -----Original Message-----
> From: www-xml-xinclude-comments-request@w3.org
> comments-request@w3.org] On Behalf Of Elliotte Harold
> Sent: Friday, December 05, 2003 7:06 PM
> To: www-xml-xinclude-comments@w3.org
> Subject: missing href, parse="text", xpointer="something"
> Consider the following include element:
> <xi:include parse="text" xpointer="xpointer(/)"/>
> What, if anything, does this include? Is it an error? If so what sort
> error and why?
> I think the current draft spec is at best unclear on this point.
> According to section 3.1, "The |href| attribute is optional; the
> of this attribute is the same as specifying |href=""|, that is, the
> reference is to the same document. If the |href| attribute is absent,
> the |xpointer| attribute must <http://www.w3.org/TR/xinclude/#dt-must>
> be present." However, in the same section, "The |xpointer| attribute
> no effect when |parse="text"|."
> I suspect this should probably be a fatal error (just like omitting
> parse and href). However, my best current reading of the spec is that
> this does include the current document as text. I think this needs to
> discussed and, whatever the resolution, should be called out for more
> explicit treatment in the spec.
> --
> Elliotte Rusty Harold
Received on Tuesday, 17 February 2004 18:48:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:34 UTC