Miscellaneous
Click arrow key () to navigate to next page
Title Element
- A <title> element may occur at the top of the schema and at the top of each pattern. (Put it immediately after the <include> elements, if
present)
- Use the <title> element to give a title for the schema or pattern.
Example of Using the Title Element
- <sch:schema ...
- <title>Implementation of a Security Policy</title>
- <sch:pattern id="SecurityClassificationPolicy">
- <title>Implementation of a Security Policy</title>
- ...
- </sch:pattern>
- <sch:pattern id="ReservedWordFilter">
- <title>Check for Reserved Words</title>
- ...
- </sch:pattern>
- </sch:schema>
value-of Element
- The <value-of element is used in <assert> and <diagnostic> elements.
- It is exactly like the XSLT value-of element: it has a select attribute whose value is an XPath expression. It is used to identify a value
in the XML document that you want output.
name Element
- The <name element is also used in <assert> and <diagnostic> elements.
- It is exactly like the XSLT name() function.
- It outputs the name of the current node.
- It has an optional path attribute, whose value is an XPath expression, for identifying a node whose name you want output.
queryBinding Attribute
- The root element, schema, has an optional queryBinding attribute.
- It is used to specify the language used in (rule) context expressions and (assert) test expressions.
- To indicate that you will be using XPath 2 expressions, set queryBinding="XSLT2"
defaultPhase Attribute
- The root element, schema, has an optional defaultPhase attribute.
- Set its value to the id of a phase element.
- By default, its value is #all, to indicate that all phases are active.