sqf:group

Defines a Schematron QuickFix group. If the group is linked by an assert or report, all QuickFixes of this group will be associated with the assert/report.

Element Information

Model

Children: sqf:fix

Attributes

QName Type Fixed Default Use Inheritable Annotation
id xs:string required
The ID to reference the QuickFix group.
value
characters of type xs:ID. The value must be unique in the parent element.
use-when xs:string true() optional
The condition to provide the QuickFixes of the QuickFix group.
value
XPath expression. It expects as return value an xs:boolean.
xml:lang union of(xs:language, restriction of xs:string) optional
Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.

         The union allows for the 'un-declaration' of xml:lang with
         the empty string.
Wildcard: ANY attribute from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron'

Used By

Element Group sqf:fixElements

Source

<xs:element name="group">
  <xs:annotation>
    <xs:documentation>Defines a Schematron QuickFix group. If the group is linked by an assert or report, all QuickFixes of this group will be associated with the assert/report.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:choice minOccurs="1" maxOccurs="unbounded">
      <xs:element ref="sqf:fix"/>
    </xs:choice>
    <xs:attribute name="id" use="required" type="xs:string">
      <xs:annotation>
        <xs:documentation>The ID to reference the QuickFix group.</xs:documentation>
        <xs:documentation source="value">characters of type xs:ID. The value must be unique in the parent element.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="use-when" use="optional" type="xs:string" default="true()">
      <xs:annotation>
        <xs:documentation>The condition to provide the QuickFixes of the QuickFix group.</xs:documentation>
        <xs:documentation source="value">XPath expression. It expects as return value an xs:boolean.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="xml:lang"/>
    <xs:attributeGroup ref="sch:foreign"/>
  </xs:complexType>
</xs:element>

Sample