Ah, you are correct. I read his request too quickly.
Both Apache Cocoon and Microsoft .NET claim to support XInclude but I am not sure if there are any pure client-side implementations. Also, it is unclear at (another too quick) glance what the validation issues may be with either of these.
Leigh Dodds writes:
Date: Tue, 20 Nov 2001 12:29:42 -0000 From: Leigh Dodds ldodds@INGENTA.COM To: TDWG-SDD@usobi.org Subject: Re: is there an "xml-include"
This is a means to separate out a schema into multiple files, if I understand Gregor correctly he's asking for a way to test for id/keyref uniqueness across multiple files?
If so, then you can include chunks of XML in other documents using the dtd entity mechanism -- which is what I believe he has already tried. I don't believe there's actually an equivalent for XML Schema: you still need a DTD.
At a higher level there is XInclude which allows for including content from one document into another. Not sure on current support for this however.
(Assuming I'm on the right track) You may want to consider using an additional validation mechanism here, such as XLinkIt [1] which can make assertions (e.g. id uniqueness) across multiple documents.
Hope that helps,
[1]. http://www.xlinkit.com/main.html
-----Original Message----- From: TDWG - Structure of Descriptive Data [mailto:TDWG-SDD@usobi.org]On Behalf Of Robert A. (Bob) Morris Sent: 20 November 2001 11:41 To: TDWG-SDD@usobi.org Subject: XML: is there an "xml-include"
Yes. See http://www.w3.org/TR/xmlschema-0/#SchemaInMultDocs
Gregor Hagedorn writes:
Date: Tue, 20 Nov 2001 11:17:27 +0100 From: Gregor Hagedorn G.Hagedorn@bba.de To: TDWG-SDD@usobi.org Subject: XML: is there an "xml-include"
If character are defined with an id (numeric or character) in one file, and the item descriptions use these ids through idref or through xml-schema keyref means:
How can a validating parser validate the schema, including keyrefs, without having to include the entire character definition in each of 1000s of taxon description xml files? Can the ids for idref/keyref be declared to be in a separate file?
I could not find a standard xml-include command. I know there is one defined for dtds, but that is all I could find.
Can the xml experts help?
Gregor
PS I will post minutes of the TDWG meeting within the next days
Gregor Hagedorn (G.Hagedorn@bba.de) Institute for Plant Virology, Microbiology, and Biosafety Federal Research Center for Agriculture and Forestry (BBA) Koenigin-Luise-Str. 19 Tel: +49-30-8304-2220 14195 Berlin, Germany Fax: +49-30-8304-2203
Often wrong but never in doubt!