Commit 70c212a
authored
fix: handle externalRef in pretext.rng schema compilation
The upstream pretext.rng now uses <externalRef> elements for PreFigure
diagram support, referencing pf-adapter.rng, pf-preamble-adapter.rng,
and pf_schema.rng. salve-annos has a bug where InternalSimplifier.parse
is called from step1 with only a filePath URL (per the Parser type
interface), leaving schemaText undefined and crashing the XML parser.
Fixes:
1. Patch InternalSimplifier.prototype.parse in compile-grammar.mjs to
load the resource via resourceLoader when schemaText is undefined.
2. Update getSchemas.js to also download pf-adapter.rng,
pf-preamble-adapter.rng, and pf_schema.rng (dependencies of pretext.rng).
3. Commit pf_schema.rng and updated schema files to repo.1 parent e0fcf7d commit 70c212a
7 files changed
Lines changed: 2407 additions & 15 deletions
File tree
- packages
- schema
- assets
- scripts
- vscode-extension/assets/schema
- scripts
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
16 | 41 | | |
17 | 42 | | |
18 | 43 | | |
| |||
0 commit comments