Expand description
Parse a CSL 1.0.2 style document into the typed Style AST.
A read-only [roxmltree] DOM walk, dispatching on element local names.
The <style> root must be in the CSL namespace or none
(an unnamespaced root is tolerated; a foreign namespace is rejected).
It models the structure and common attributes; unmodelled attributes are ignored,
unknown rendering elements are a CslParseError, and in-style <locale> blocks are retained
as raw XML for a later locale slice.
ConstantsΒ§
- CSL_
NAMESPACE π - The CSL XML namespace. A namespaced
<style>root must use it.
FunctionsΒ§
- attr π
- An attribute as an owned
String, if present. - bool_
attr π - A boolean attribute:
trueonly when the value is exactly"true". - child_
elements π - Element-only children of
node(skips text, comments, and whitespace). - column_
to_ πbyte_ offset - err_at π
- Build an error anchored at a nodeβs start byte offset.
- line_at π
- parse_
bibliography π - parse_
bibliography_ πoptions - parse_
choose π - parse_
citation π - parse_
citation_ πoptions - parse_
common π - parse_
conditions π - parse_
date π - parse_
element π - parse_
elements π - parse_
group π - parse_
info π - parse_
info_ πcategory - parse_
info_ πcontributor - parse_
info_ πlink - parse_
inheritable_ πname_ options - parse_
label π - parse_
layout π - parse_
layout_ πand_ sort - parse_
locale π - parse_
name_ πelement - parse_
names π - parse_
number π - parse_
sort π - parse_
sort_ πkey_ options - parse_
style - Parse
inputas a CSL 1.0.2 style. - parse_
style_ πoptions - parse_
text π - text_
pos_ πto_ byte_ offset - tokens π
- A whitespace-separated attribute split into owned tokens.