W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2002

including external xml files in an instance and validating across the files

From: Rolf Russell <rolf@powermarket.com>
Date: Fri, 1 Feb 2002 21:57:26 -0500 (EST)
Message-ID: <BBCC7FA3CF18D511B30D0002B3312B6C74199E@excserve1.powermarket.com>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
To explain my question it is probably best to give an example of the
situation.  Lets say that I have 2 types of xml documents:  a partlist.xml
including partnumber, description and other details, and an invoice.xml with
a list of items including partnumber, quantity and cost.  My company has 1
partlist.xml file but many invoice.xml files.  I have defined xml schemas
that validate each type of document independently, but would also like to
validate the partnumbers across files (ie. make sure each partnumber in an
invoice corresponds to a partnumber in my partlist).  The best way seems to
be to 'include' the partlist schema in the invoice schema and use KEY -
KEYREF.  My question is how do I then include/import the partlist.xml
document in an invoice.xml document?  I want to keep the files separate
because of the many to 1 relationship.

Thanks,

--Rolf Russell
Received on Monday, 4 February 2002 05:02:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT