Filling Out the DD Rule Class

From The SBN Wiki
Revision as of 14:32, 27 March 2015 by Raugh (talk | contribs) (Creation - Safety Save)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The ability to define Schematron rules gives you another mechanism for validating labels through defined dependencies and contingencies over and above what the XSD Schema standard provides. For example, you can define a rule that requires that any label that contains ClassA also contains ClassB, or that all calibrated products contain a class with instrument calibration parameters.


Each <DD_Rule> class defines one Schematron rule definition. The Schematron pattern blocks are generated as needed by LDDTool.


You should have an understanding of how to write XPath specifications and Schematron statements before diving in here, or the terminology can be rather opaque.


<local_identifier>

REQUIRED

<rule_context>

REQUIRED

<rule_assign>

OPTIONAL

<DD_Attribute_Reference>

REQUIRED

<namespace_id>

REQUIRED

<name>

REQUIRED

<DD_Class_Reference>

REQUIRED

<namespace_id>

REQUIRED

<name>

REQUIRED

<DD_Rule_Statement>

REQUIRED

<rule_type>

REQUIRED

<rule_test>

REQUIRED

<rule_message>

REQUIRED

<rule_description>

OPTIONAL

<rule_value>

OPTIONAL