sqf:fix

Defines a Schematron QuickFix with its content. All commands will be processed if the QuickFix is activated by the user.

Element Information

Model

sqf:param* , (((ANY element from namespace(s) 'http://www.w3.org/1999/XSL/Transform' | ANY element from LOCAL namespace 'No Namespace')) | sch:let | sqf:description | sqf:user-entry | sqf:call-fix | ((sqf:add | sqf:delete | sqf:replace | sqf:stringReplace)))

Attributes

QName Type Fixed Default Use Inheritable Annotation
id xs:NCName required
The ID to reference the QuickFix.
value
characters of type xs:ID. The value must be unique in the parent element.
role restriction of xs:string optional
With this attribute the role of the QuickFix can be set manually.
The role of a QuickFix describes the type of change which it makes. If the role is not set manually, the role is the type of the used activity element ("add", "delete", "replace" or "stringReplace"). If two different activity elements are used in a QuickFix, the role is automatically "mix".
default
Depends on which activity element is used by the QuickFix.
use-for-each xs:string . optional
QuickFixes with use-for-each attribute are generic. Each return value of the evaluated XPath expression should create an own QuickFix. To access to the current return value, the XPath variable $sqf:current should be provided.
value
XPath expression. It expects as return value an untyped sequence.
use-when xs:string true() optional
The condition to provide the QuickFix.
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
Element sqf:group

Source

<xs:element name="fix">
  <xs:annotation>
    <xs:documentation>Defines a Schematron QuickFix with its content. All commands will be processed if the QuickFix is activated by the user.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="sqf:param" minOccurs="0" maxOccurs="unbounded"/>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:group ref="sqf:foreign"/>
        <xs:element ref="sch:let"/>
        <xs:element ref="sqf:description"/>
        <xs:element ref="sqf:user-entry"/>
        <xs:element ref="sqf:call-fix"/>
        <xs:group ref="sqf:activityElements"/>
      </xs:choice>
    </xs:sequence>
    <xs:attribute name="id" use="required" type="xs:NCName">
      <xs:annotation>
        <xs:documentation>The ID to reference the QuickFix.</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 QuickFix.</xs:documentation>
        <xs:documentation source="value">XPath expression. It expects as return value an xs:boolean.</xs:documentation>
      </xs:annotation>
    </xs:attribute>