W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > October 2009

Re: A imports B, B imports A

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Thu, 15 Oct 2009 17:13:23 +0100
To: <Toman_Vojtech@emc.com>
Cc: <public-xml-processing-model-wg@w3.org>
Message-ID: <f5bskdkhbz0.fsf@hildegard.inf.ed.ac.uk>
Hash: SHA1

[anon] writes:

> I am now working on a proper (at least I hope) implementation of
> p:import in our processor. I have one question about circular imports:
> One one hand, we say that it is err:XS0021 if the import references are
> circular, but on the other hand, appendix G (Handling Circular and
> Re-entrant Library Imports) seems to suggest that the case "A imports B,
> B imports A" is allowed - there are even two tests in the test suite
> (import-007 and import-008) that expect this to work.
> If the tests are correct, can anybody explain to me the reasoning behind
> this?

Because I screwed up?  I wasn't aware/had forgotten that we ruled out
circular imports.  I _think_ the old Appendix G algorithm also allowed

Allowing re-entrant import w/o allowing circular import
seems. . . odd.

XML Schema does not rule out either.

XSLT rules out circular but not re-entrant import or include.


- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Version: GnuPG v1.2.6 (GNU/Linux)

Received on Thursday, 15 October 2009 16:16:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:47 UTC