OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Linking (using embed) and XML Schema

[ Lists Home | Date Index | Thread Index ]
  • From: "Roger L. Costello" <costello@mitre.org>
  • To: xml-dev@ic.ac.uk
  • Date: Tue, 03 Aug 1999 15:57:40 -0400

Hi Folks,

Suppose that I have an XML document that is created by assembling XML
data from various sources, using XML Link (with show="embed").  For
example, we may create an XML document to show stock quotes, where the
quotes are gotten from, say, three different sources.

Such a document raises interesting questions with regards to the XML
schema for that document.  Does the schema describe the structure of the
document *after* the embeddding process has occurred (post-embed), or,
does the schema describe the structure of the document *before* the
embedding process has occurred (pre-embed)?  

For example, does the schema describe this version of the document (the
post-embed version):

<?xml version="1.0">
<stocks xmlns="stocks.xsd">
      <company.name>Microsoft Corporation</company.name>
      <current.price>85 5/8</current.price>
      <previous.close>84 13/16</previous.close>
      <company.name>Apple Corporation</company.name>
      <current.price>55 3/4</current.price>
      <previous.close>55 3/4</previous.close>
      <company.name>Home Depot</company.name>
      <change>-1 3/8</change>
      <previous.close>62 3/8</previous.close>
      <company.name>Lucent Technologies</company.name>
      <current.price>65 7/16</current.price>
      <change>-1 5/16</change>
      <previous.close>66 3/4</previous.close>

Or, does the schema describe this version of the document (the pre-embed

<?xml version="1.0">
<stocks xmlns="stocks.xsd">
   <source show="embed"
   <source show="embed"
   <source show="embed"

Another interesting question is: can we specify (in the schema?) that
the XML parser should validate the pre-embed version versus the
post-embed version?

>From my cursory look at the XML Schema it appears that this problem has
not been addressed.  Is it going to be addresssed in later working
drafts?  Any comments on this problem?  /Roger

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS