> 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
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
SPONSORED LINKS
| Xml schema | Computer internet security | Xml |
| Computer internet business | Xml format | Xml document |
YAHOO! GROUPS LINKS
- Visit your group "rng-users" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
