Skip to content

Documentation / @facturometro/parser / UblSrRule

Interface: UblSrRule ​

Defined in: generated/structural.generated.ts:52

A cap on how often an element may appear inside each element its context selects, and, for a count(path) = n assert, how often it must.

Properties ​

anywhere? ​

readonly optional anywhere?: boolean

Defined in: generated/structural.generated.ts:59

When true the context is matched at any depth: contextSegments is a suffix of the path of the element the cap applies to, not a path from the document element. Every relative Schematron rule context works this way - UBL-SR-32 caps cac:TaxCategory/cbc:TaxExemptionReason inside every cac:TaxSubtotal, wherever it sits.


attribute? ​

readonly optional attribute?: string

Defined in: generated/structural.generated.ts:61

Local name of the attribute being counted, when the rule counts attributes.


chargeIndicator? ​

readonly optional chargeIndicator?: boolean

Defined in: generated/structural.generated.ts:63

cbc:ChargeIndicator the context element must carry, when the rule is about one.


childSegments ​

readonly childSegments: readonly string[]

Defined in: generated/structural.generated.ts:65

Qualified element names of the counted path, relative to the context.


contextSegments ​

readonly contextSegments: readonly string[]

Defined in: generated/structural.generated.ts:70

Qualified element names selecting the context element, outermost first. Empty means the document element; otherwise see anywhere.


id ​

readonly id: string

Defined in: generated/structural.generated.ts:72

Rule id, e.g. UBL-SR-08.


max ​

readonly max: number

Defined in: generated/structural.generated.ts:74

How many occurrences are allowed.


min? ​

readonly optional min?: number

Defined in: generated/structural.generated.ts:76

How many occurrences are required; absent when none are.


special? ​

readonly optional special?: UblSrSpecial

Defined in: generated/structural.generated.ts:78

A predicate the counted path puts on the counted element or on its parent.

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.