lookup_value
Explains what an S1000D BREX element or attribute value means, lists allowed values, and checks whether a given value is permitted.
Instructions
Explain what a value of an element or attribute means in a BREX, or list the allowed values. Pass "target" as an attribute name (e.g. "securityClassification"), an element name, or an XPath fragment; optionally "value" to check one value. Returns the matching rules with allowed values and their meanings, and whether the value is allowed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brex | No | Which BREX to use: a file path to a BREX data module (.xml), or a DMC (e.g. "KENBAIKI-A-00-00-00-00A-022A-D", "DMC-" prefix optional) searched in csdbDirs / S1000D_CSDB_DIR / S1000D_SPEC_DIR. Omit to use the S1000D default BREX found under S1000D_SPEC_DIR. | |
| value | No | The value to check against the allowed values (optional). | |
| target | Yes | Attribute name ("infoCode", "@infoCode"), element name ("language"), or XPath fragment to match against objectPath. | |
| context | No | Schema file name (e.g. "descript") to pick context-specific rules in addition to common ones. | |
| csdbDirs | No | Extra folders to search for data modules and BREX by DMC (in addition to S1000D_CSDB_DIR and S1000D_SPEC_DIR). |