Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Creating an XML Schema that will validate and accept any variable element name.

From: Mike Duong <mkduong@-----.--->
To: xmlschema-dev@--.---
Date: 7/2/2004 9:57:00 AM
This is sure a FAQ. . .

xs:import plays _two_ roles:

1) It allows references by QName to components in namespaces other
than the target namespace of the enclosing <xs:schema>;

2) It provides a hint about where to find a schema document for that
namespace.

The first very clearly only works within single schema documents.
<xs:include> is _not_ a text substitution facility.

The relevant constraint [1] says:

  "For a =B7QName=B7 to resolve to a schema component . . . the
  =B7namespace name=B7 of the =B7QName=B7 is the same as one of the follo=
wing:

    * The =B7actual value=B7 of the targetNamespace [attribute] of the
      <schema> element information item of the schema document
      containing the =B7QName=B7.

    * The =B7actual value=B7 of the namespace [attribute] of some <import=
>
      element information item contained in the <schema> element
      information item _of that schema document_ [emphasis added].

ht
  
[1] http://www.w3.org/TR/2004/PER-xmlschema-1-20040318/#src-resolve
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinbur=
gh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@i...
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged =
spam]

From nobody@w...  Thu Jul  8 14:21:33 2004
Return-Path: <nobody@wiggum


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent