Re: XInclude and SAX Incompatibility
Norman Walsh <[email protected]> Tue, 08 Jul 2003 16:09:42 -0400
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 / Elliotte Rusty Harold <[email protected]> was heard to say: | At 4:03 PM -0400 6/24/03, Peter McCracken wrote: [...] |>I'm envisioning the scenario when no URL is given (href=" |>#fragment-identifier"). This would be resolved against the current |>document. And the current document might not necessarily be able to be |>reopened, if it is coming from an input stream other than a regular file. | | That's not legal. According to section 5.3 all element and document | information items *must* have base URI properties, against which a | relative URL can be resolved. Yes, but per Section 4.2 of RFC2396: 4.2. Same-document References A URI reference that does not contain a URI is a reference to the current document. In other words, an empty URI reference within a document is interpreted as a reference to the start of that document, and a reference containing only a fragment identifier is a reference to the identified fragment of that document. Traversal of such a reference should not result in an additional retrieval action. However, if the URI reference occurs in a context that is always intended to result in a new request, as in the case of HTML's FORM element, then an empty URI reference represents the base URI of the current document and should be replaced by that URI when transformed into a request. a reference of the form "#foo" is always a reference to the current document. It *is not* resolved according to the current base URI. You might argue that XInclude, like HTML's FORM, "is always intended to result in a new request", but I wouldn't. Be seeing you, norm - -- Norman Walsh <[email protected]> | I'm NOT in denial! http://nwalsh.com/ | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/> iD8DBQE/CyUGOyltUcwYWjsRAlIrAKCcV0LittlyKVoedHFjhLttJseE1wCfWqot Ra1UP2CRxokprtDPTpn2HXw= =kHQK -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ List: sax-devel, [email protected] See: http://www.saxproject.org/ https://lists.sourceforge.net/lists/listinfo/sax-devel