Problem with spectitle attribute
Posted: Tue Sep 06, 2016 4:56 pm
Hi! Please advice, I'm hopefully missing something very simple here... I'm using oXygen XML Editor 17.1 with DITA OT 1.8.5 to create a DITA 1.2 specialization of section. The specialization is a plugin in DITA OT and defines a document type shell in one file and extensions in another.
I have a class that references attributeGroup section.attributes:
...and elements that extend that class:
All's fine, until I try to set a default value to the spectitle attribute in vaatimus-element's extension of RYL-kappale.class:
The attribute is available in author when editing the test document and visible in the schema design view, but when I now try to validate my test document, xerces says:
...and saxon says:
...and libxml says:
This happens even if I replace the reference to the attribute group with the contents of the group, thus defining spectitle locally in RYL-kappale. Without spectitle default value in the schema, the test document validates.
Why?
Please let me know if I should provide more information on my specialization to help solve this issue.
I have a class that references attributeGroup section.attributes:
Code: Select all
<xs:complexType name="RYL-kappale.class" mixed="false">
<xs:sequence maxOccurs="unbounded">
<xs:choice>
<xs:group ref="basic.block"/>
<xs:element ref="alakappale"/>
</xs:choice>
</xs:sequence>
<xs:attributeGroup ref="section.attributes"/>
</xs:complexType>
Code: Select all
<xs:element name="vaatimus">
<xs:annotation>
<xs:documentation>Vaatimusteksti</xs:documentation>
</xs:annotation>
<xs:complexType mixed="false">
<xs:complexContent>
<xs:extension base="RYL-kappale.class">
<xs:attribute ref="class" default="+ topic/section ryl-d/vaatimus " />
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
Code: Select all
<xs:attribute ref="spectitle" default="Vaatimus" />
Code: Select all
src-resolve: Cannot resolve the name 'spectitle' to a(n) 'attribute declaration' component.
Code: Select all
The attribute {spectitle} is referenced, but has not been declared
Code: Select all
element attribute: Schemas parser error : attribute use (unknown), attribute 'ref': The QName value 'spectitle' does not resolve to a(n) attribute declaration.
Why?
Please let me know if I should provide more information on my specialization to help solve this issue.