 |
 |
 |
Hi Oknam,
The content of your app element is ambiguous and XML Schema does not
accept ambiguous content.
You have in gemapplication.xsd:
...
<xs:element name="app">
<xs:complexType>
<xs:sequence>
<xs:element ref="dcq:audience" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="gemq:age" minOccurs="0" maxOccurs="unbounded"/>
...
Now suppose the document contains inside app a gemq:age element. This
element can be matched by
<xs:element ref="dcq:audience" minOccurs="0" maxOccurs="unbounded"/>
because the age element can substitute audience, see the definition of
the age element in gemq.xsd:
<xs:element name="age" substitutionGroup="dcq:audience"/>
Also, as minOccurs on
<xs:element ref="dcq:audience" minOccurs="0" maxOccurs="unbounded"/>
is zero the age element can be also matched by the second particle:
<xs:element ref="gemq:age" minOccurs="0" maxOccurs="unbounded"/>
which refers directly to the age element, thus the ambiguity.
For more details in the spec about this see
http://www.w3.org/TR/xmlschema-1/#cos-nonambig
http://www.w3.org/TR/xmlschema-1/#non-ambig
In general the solutions to solve ambiguity problems are:
1. rewrite the content model in a non ambiguous way, for instance
instead of (a,b)|(a,c) one can write (a, (b|c))
2. relax the content model to allow more and enforce the constraint at
some other level (for instance you can use embedded Schematron rules or
place the constraint at application level).
Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
www.---.com
oknam park wrote:
>
> I'm still waiting for your help.
>
> Thanks a lot,
>
> Best regards,
> Oknam Park
>
>
>> From: "oknam park" <ponda7777@h...>
>> To: mike@s..., xmlschema-dev@w...
>> Subject: RE: Schema Help
>> Date: Sun, 29 Jan 2006 00:04:21 +0000
>>
>> Here they are.
>>
>> Thanks,
>> Oknam
>>
>>
>>> From: "Michael Kay" <mike@s...>
>>> To: "'oknam park'" <ponda7777@h...>,<xmlschema-dev@w...>
>>> Subject: RE: Schema Help
>>> Date: Sun, 29 Jan 2006 00:02:10 -0000
>>>
>>> Sorry, but gemq still contains these lines which make it impossible to
>>> validate your schema:
>>>
>>> <xs:import namespace="http://purl.org/dc/elements/1.1/"
>>> schemaLocation="dc.xsd"/>
>>> <xs:import namespace="http://purl.org/dc/dcmitype/"
>>> schemaLocation="dcmitype.xsd"/>
>>> <xs:import namespace="http://purl.org/dc/terms/"
>>> schemaLocation="dcterms.xsd"/>
>>>
>>> Michael Kay
>>> http://www.saxonica.com/
>>>
>>> > -----Original Message-----
>>> > From: oknam park [mailto:ponda7777@h...]
>>> > Sent: 28 January 2006 21:54
>>> > To: mike@s...; xmlschema-dev@w...
>>> > Subject: RE: Schema Help
>>> >
>>> > So, I revised gemp. and uploaded again.
>>> >
>>> > I really need your help. ^^
>>> >
>>> >
>>> > >From: "Michael Kay" <mike@s...>
>>> > >To: "'oknam park'" <ponda7777@h...>,<xmlschema-dev@w...>
>>> > >Subject: RE: Schema Help
>>> > >Date: Sat, 28 Jan 2006 08:59:17 -0000
>>> > >
>>> > >
>>> > >gemq contains references to schemas that you haven't
>>> > provided, so I can't
>>> > >help you with this.
>>> > >
>>> > >Michael Kay
>>> > >http://www.saxonica.com/
>>> > >
>>> > > > -----Original Message-----
>>> > > > From: xmlschema-dev-request@w...
>>> > > > [mailto:xmlschema-dev-request@w...] On Behalf Of oknam park
>>> > > > Sent: 27 January 2006 22:53
>>> > > > To: xmlschema-dev@w...
>>> > > > Subject: Schema Help
>>> > > >
>>> > > > I developed a xml schema for a set of element and a set of
>>> > > > qualifiers as
>>> > > > well as application profile.
>>> > > >
>>> > > > Seems that Schemas for element and qualifier do not have any
>>> > > > problem. But, a
>>> > > > schema for an application profile is against validation.
>>> > > >
>>> > > > I have no idea about this.
>>> > > >
>>> > > > Could you give me a tip? Here are attached files.
>>> > > >
>>> > > > Thanks a lot,
>>> > > >
>>> > > > Cheers,
>>> > > > Oknam
>>> > > >
>>> > > >
>>> > >
>>> > >
>>> > >
>>> >
>>> >
>>>
>>>
>>
>
>
>> << dc.xsd >>
>
>
>> << dcterms.xsd >>
>
>
>> << dcmitype.xsd >>
>
>
>
From pallas@c... Fri Feb 03 03:42:39 2006
Received: from wiggum.w3.org ([128.30.52.23])
by frink.w3.org with esmtp (Exim 4.50)
id 1F4rqJ-00049d-S1
for xmlschema-dev@listhub.
|
 | 

|  |
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.
|  |
| |
 |
 |
 |