]> Lady’s Gitweb - Shushe/commit
Apply attributes at every stage
authorLady <redacted>
Fri, 20 Sep 2024 03:21:16 +0000 (23:21 -0400)
committerLady <redacted>
Fri, 20 Sep 2024 03:23:28 +0000 (23:23 -0400)
commit23832d1a6f6bf4d2adce00d6e5ff65290aaa1ef1
treec7686a93e928321a7ae6dc35bc533da64ad94944
parent2c60920156e8a1ff1749f3e94316510d03a53a85
Apply attributes at every stage

Previously, there was a lot of complicated logic to account for the
fact that certain important attributes might not be added until the end
of the transformation process (via `<书社:apply-attributes>` or
`<书社:apply-attributes-to-root>`). It’s much simpler, conceptually, to
just apply attributes after every transformation phase and not worry
about them besides.

This does mean that if an embed contains an
`<书社:apply-attributes-to-root>` element, it _will_ almost definitely
be applied when·ever that embed is embedded, before the next phase gets
a chance to put a word in edge·wise. Presumably, tho, this is one of
the main utilities of the `<书社:apply-attributes-to-root>` element in
the first place, so maybe that is okay.

This commit introduces a new `书社:finalize` mode for things wot used
to be in the `书社:apply` mode but weren’t actually related to
attribute application.
README.markdown
lib/catalog2transform.xslt
transforms/asset.xslt
transforms/serialization.xslt
This page took 0.04892 seconds and 5 git commands to generate.