]> Lady’s Gitweb - Shushe/commit
Improve <书社:apply-attributes>, @书社:archived-as
authorLady <redacted>
Tue, 20 Aug 2024 06:22:17 +0000 (02:22 -0400)
committerLady <redacted>
Thu, 22 Aug 2024 01:39:11 +0000 (21:39 -0400)
commit070f5743ea9121df02cf1717c806531703dd7899
tree833e247fb95df435d617352801f5038f04f8d347
parent84e79eb9ea63d28dfa93dfe7d3acd457905cc53e
Improve <书社:apply-attributes>, @书社:archived-as

- `<书社:apply-attributes>` should not prevent H·T·M·L from wrapping.
  Note that the H·T·M·L wrapper is still not
  `<书社:apply-attributes>`‐aware; it will _not_ seek into the wrapped
  contents to search for attributes to pull upwards to the root
  element. This could probably be improved.

- `@书社:archived-as` can now be applied to `<书社:link>` and will be
  passed down to any embedded contents.

- `@书社:archived-as` will not be deleted during attribute application
  onto the root element; it now ensures there is a nonroot, nonarchive
  ancestor. This is required because archive children are processed
  into a separate document prior to application.

  An alternative approach might be to wrap archive children in a
  `<书社:archive>` element before application and then strip it after,
  but this is a fair bit of added work for little benefit. It’s a fair
  question whether removing invalid `@书社:*` attributes like this is
  even a good practice—invalid `<书社:link>` elements are maintained,
  in contrast.
lib/catalog2transform.xslt
This page took 0.022008 seconds and 4 git commands to generate.