Embedded schematron: problem with pattern/@name and value-of
Posted: Fri Feb 28, 2014 9:48 am
Hi,
i just changed to oxygen 15.2 and got now errors within my xsd-embedded schemtron rules:
example causing both erors:
Thanks and regards,
Patrik
i just changed to oxygen 15.2 and got now errors within my xsd-embedded schemtron rules:
- [Schematron 1.5] cvc-complex-type.4: Attribute 'name' must appear on element 'sch:pattern'
- [Schematron 1.5] cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://www.ascc.net/xml/schematron":value-of}'. One of '{"http://www.ascc.net/xml/schematron":name, "http://www.ascc.net/xml/schematron":emph, "http://www.ascc.net/xml/schematron":dir, "http://www.ascc.net/xml/schematron":span, WC[##other:"http://www.ascc.net/xml/schematron",""]}' is expected.
example causing both erors:
Code: Select all
<xs:element name="draft-comment" substitutionGroup="StandardInlineElement">
<xs:complexType>
<xs:annotation>
<xs:appinfo>
<sch:pattern>
<sch:rule context="draft-comment">
<sch:report test="true()" role="warn">
draft-comment: '<sch:value-of select="string-join(.//text()[not(matches(., '^\s+$'))], '')"/>'
</sch:report>
</sch:rule>
</sch:pattern>
</xs:appinfo>
</xs:annotation>
<xs:complexContent>
<xs:extension base="anyType">
<!--<xs:attribute name="author"/>-->
<!--<xs:attribute name="time"/>-->
<xs:attribute name="class" fixed="- topic/draft-comment"/>
<xs:attributeGroup ref="attlistSpacePreserve"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
Patrik