Re: redefinition of SimpleType in nested schemas

Michael Kay <[email protected]>
Newsgroups gmane.text.xml.schema.devel
Message-ID <[email protected]>
  It seems you need the XSD 1.1 facility called xs:override, which is 
like xs:redefine except that there is no constraint that your overriding 
types should be in any way consistent with the things they override.

Michael Kay
Saxonica

On 22/09/2010 12:23 PM, Marie Bilde Rasmussen wrote:
> Hello.
> I have an xml schema, let's call it dictionary.xsd, describing general 
> structures and datatypes used in dictionaries. dictionary.xsd contains 
> a definition of a SimpleType called Subjects. The SimpleType is a 
> restriction of xs:string and it contains a long list of enumerations.
> Another - more specialized - schema, called Danish-English.xsd is 
> built upon dictionary.xsd. This is done by using <xs:include>.
> A third - even more specialized - schema, called 
> Danish-English-technical.xsd builds on it's turn upon 
> Danish-English.xsd, but this time I have chosen to use <xs:redefine>, 
> because in these special dictionaries, I need to modify the 
> SimpleType "Subject" by extension.
> I cannot figure out how to do this. I am not allowed to do so.
> This has worked for me with only one level of inclusion. Could the 
> fact that I want to redefine a schema on a level that is more than one 
> nesting leve l"away" be the problem?
> below I have tried to illustrate the nesting and the Type Definitions:
> Danish-English-technical.xsd (redefines SimpleType "Subjects")
> ->
> redefines
> Danish-English.xsd
> ->
> includes
> dictionary.xsd (declares SimpleType "Subjects" as a restriction of 
> xs:string by enumeration)
> I would be grateful for any input.
> Regards,
> Marie
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.