explain_brex
Lists BREX rules and header details with targets, allowed values, severity, and schema context, so you can inspect S1000D constraints and filter by rule kind or context.
Instructions
List the rules of a BREX data module in readable form: for each rule, the target (XPath), whether it is forbidden / required / optional, the allowed values with their meanings, severity, and the schema context it applies to. Also returns the BREX header (DMC, parent BREX, counts). Use "kind" and "context" to narrow, "offset"/"limit" to page.
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. | |
| kind | No | Rule kind to list (default: all). | all |
| limit | No | Maximum rules to return (default 50, max 500). | |
| offset | No | Index of the first rule to return (default 0). | |
| search | No | Case-insensitive text to find in objectPath, objectUse, rule id or value meanings. | |
| context | No | Only rules that apply to this schema (file name such as "descript", "proced", "pm") plus the common rules. Omit for all contexts. | |
| csdbDirs | No | Extra folders to search for data modules and BREX by DMC (in addition to S1000D_CSDB_DIR and S1000D_SPEC_DIR). |