The same errors are still in the 1.1 version of the schema. In fact, in 
1.1 two more attributes than were in Dave's fix have the issue. Anybody 
have insight into why Oasis hasn't fixed this?

Bob

Dave Pawson wrote:
> On 27/05/06, John Cowan <[EMAIL PROTECTED]> wrote:
> 
>>Dave Pawson scripsit:
>>
>>
>>>Error reported is
>>>
>>>/files/odf/ODFWrSchema.rng:17425:19: error: conflicting ID-types for
>>>attribute "targetElement" from namespace
>>>"urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" of element
>>>"command" from namespace
>>>"urn:oasis:names:tc:opendocument:xmlns:animation:1.0"
>>>
>>>/files/odf/ODFWrSchema.rng:10197:22: error: conflicting ID-types for
>>>attribute "targetElement" from namespace
>>>"urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" of element
>>>"command" from namespace
>>>"urn:oasis:names:tc:opendocument:xmlns:animation:1.0"
>>>
>>>
>>>I take it that's an error in the schema?
>>
>>Yes, it is.  What's happened is that an attribute somewhere is being declared
>>of type ID, and then you are using an "anyAttribute" wildcard and implicitly
>>declaring all attributes to be of type "text", including the one you said was
>>of type ID earlier.  An attribute name can't be both ID and not-ID 
>>simultaneously.
>>
>>The cure is to exclude your ID-type attribute by name from the anyAttribute
>>wildcard.
> 
> 
> Which is fine up to a point :-)
> 
>  <define name="anyAttListOrElements">
>       <zeroOrMore>
>          <attribute>
>             <anyName>
>             <except>
>               <name 
> ns="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"
> 
>>targetElement</name>
> 
>               <name ns="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
> >id</name>
>               <name 
> ns="urn:oasis:names:tc:opendocument:xmlns:text:1.0">id</name>
>               <name ns="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
> >id</name>
>               <name ns="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" 
> >id</name>
>               <name 
> ns="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0">shape-id</name>
>               <name 
> ns="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"
> 
>>master-element</name>
> 
>               <name ns="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
> >change-id</name>
>               <name ns="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
> 
>>start-shape</name>
> 
>               <name 
> ns="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0">end-shape</name>
>               <name 
> ns="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0">control</name>
>             </except>
>           </anyName>
>             <text/>
>          </attribute>
>       </zeroOrMore>
>       <ref name="anyElements"/>
>    </define>
>    <define name="anyElements">
>       <zeroOrMore>
>          <element>
>             <anyName/>
>             <mixed>
>                <ref name="anyAttListOrElements"/>
>             </mixed>
>          </element>
>       </zeroOrMore>
>    </define>
> 
> and
> 
>   <define name="mathMarkup">
>      <oneOrMore>
>        <element>
>        <anyName/>
>        <attribute>
>          <anyName>
>            <except>
>              <name 
> ns="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"
> 
>>targetElement</name>
> 
>              <name ns="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
> >id</name>
>              <name 
> ns="urn:oasis:names:tc:opendocument:xmlns:text:1.0">id</name>
>              <name ns="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
> >id</name>
>              <name ns="urn:oasis:names:tc:opendocument:xmlns:animation:1.0"
> 
>>id</name>
> 
>              <name 
> ns="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0">shape-id</name>
>              <name ns="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"
> 
>>master-element</name>
> 
>              <name ns="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
> 
>>change-id</name>
> 
>              <name ns="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
> 
>>start-shape</name>
> 
>              <name 
> ns="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0">end-shape</name>
>              <name 
> ns="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0">control</name>
>            </except>
>          </anyName>
>          <text/>
>        </attribute>
>        <text/>
>        <ref name="mathMarkup"/>
>        </element>
>      </oneOrMore>
>    </define>
> 
> Something seriously amiss with the ODF schema!
> 
> 
> Thanks John.
> 
> regards
> 
> 

Reply via email to