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

 


Help: OASIS Mailing Lists Help | MarkMail Help

dita-comment message

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


Subject: Re: [dita-comment] Incorrect Schema declaration of the <prelreqs> and <closereqs> elements in the taskreqDomain.xsd


Hi Yury,

That was fixed earlier this year along with other fixes for the XML Schemas.  You can find the latest version of the schemas here: https://www.oasis-open.org/committees/document.php?document_id=45018&wg_abbrev=dita

Kind regards,
Eric



On 11/18/2013 9:52 AM, Eroshenkov Yury wrote:

Hi, it looks like I found some incorrect element declarations in the standard DITA XSD for Machinery Task  at the taskreqDomain.xsd:

 

As it looks now:

<!-- LONG NAME: Preliminary Requirements -->
  <xs:complexType name="prelreqs.content">
    <xs:sequence>
      <xs:group minOccurs="0" ref="reqconds"/>
      <xs:group minOccurs="0" ref="reqpers"/>
      <xs:group minOccurs="0" ref="supequip"/>
      <xs:group minOccurs="0" ref="supplies"/>
      <xs:group minOccurs="0" ref="spares"/>
      <xs:group minOccurs="0" ref="safety"/>
    </xs:sequence>
  </xs:complexType>
  <xs:attributeGroup name="prelreqs.attributes">
    <xs:attributeGroup ref="univ-atts"/>
    <xs:attribute name="outputclass"/>
  </xs:attributeGroup>
  <xs:element name="prelreqs"/>
  <xs:attributeGroup name="prelreqs.attlist">
    <xs:attributeGroup ref="prelreqs.attributes"/>
    <xs:attributeGroup ref="global-atts"/>
    <xs:attribute name="class" default="+ topic/section task/prereq taskreq-d/prelreqs "/>
  </xs:attributeGroup>

As a result, xml parsers can’t find any attributes related to the element "prelreqs". As it has to be:

<!-- LONG NAME: Preliminary Requirements -->
  <xs:complexType name="prelreqs.content">
    <xs:sequence>
      <xs:group minOccurs="0" ref="reqconds"/>
      <xs:group minOccurs="0" ref="reqpers"/>
      <xs:group minOccurs="0" ref="supequip"/>
      <xs:group minOccurs="0" ref="supplies"/>
      <xs:group minOccurs="0" ref="spares"/>
      <xs:group minOccurs="0" ref="safety"/>
    </xs:sequence>
  </xs:complexType>
  <xs:attributeGroup name="prelreqs.attributes">
    <xs:attributeGroup ref="univ-atts"/>
    <xs:attribute name="outputclass"/>
  </xs:attributeGroup>

 

  <xs:element name="prelreqs">
    <xs:complexType>
      <xs:complexContent>
        <xs:extension base="prelreqs.content">
          <xs:attributeGroup ref="prelreqs.attlist"/>
        </xs:extension>
      </xs:complexContent>
    </xs:complexType>
  </xs:element>


  <xs:attributeGroup name="prelreqs.attlist">
    <xs:attributeGroup ref="prelreqs.attributes"/>
    <xs:attributeGroup ref="global-atts"/>
    <xs:attribute name="class" default="+ topic/section task/prereq taskreq-d/prelreqs "/>
  </xs:attributeGroup>

 

The same with a “closereqs” element.

 

Best regards,

Yury Eroshenkov

Head of DITAWorks Department at *instinctools East Europe Development Labs

Skype: eroshenkov_yura

 

itools_logo

 

www.instinctools.by - Custom Software and Web Applications Development using Offshore Software Development Model

www.facebook.com/instinctools.belarus - All about *instinctools and its members

 

*instinctools East Europe Development Labs | Grodno, Belarus (East Europe) | UTC +3

 




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