OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [office] Groups - Draft 29 with change tracking information (office-spec-1.0-draft29-ct.sxw) modified


Having done all that,
I thought it reasonable to check out the content.xml
against the derived schema.
It failed, using Jing.

The changes made included

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

The 'any element' must exclude those attributes.


Unsure who is looking after the schema, but those amendments
to the actual spec would help with validation.

HTH DaveP


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]