]> Lady’s Gitweb - Shushe/commitdiff
Don’t recognize title metadata in templates
authorLady <redacted>
Sat, 22 Jun 2024 22:18:17 +0000 (18:18 -0400)
committerLady <redacted>
Sat, 6 Jul 2024 20:51:41 +0000 (16:51 -0400)
Per H·T·M·L, the elements in templates are _not_ children, and these
semantics should be respected for microdata.

transforms/metadata.xslt

index 8110f45f4fd66d47cd8019294918c9c0bd34d1f3..2901e566daab6e70ab5d75f0de0abce4a89b8085 100644 (file)
@@ -12,7 +12,7 @@ This Source Code Form is subject to the terms of the Mozilla Public License, v 2
 If a copy of the M·P·L was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
 -->
 <!DOCTYPE transform [
-       <!ENTITY attoplevel "ancestor::html:*[@itemscope and @itemtype='&书社;:document'] and not(ancestor::html:*[@itemscope]/ancestor::html:*[@itemscope and @itemtype='&书社;:document'] or preceding::html:*[@itemtype='&书社;:document'])">
+       <!ENTITY attoplevel "not(ancestor::html:template) and ancestor::html:*[@itemscope and @itemtype='&书社;:document'] and not(ancestor::html:*[@itemscope]/ancestor::html:*[@itemscope and @itemtype='&书社;:document'] or preceding::html:*[@itemtype='&书社;:document'])">
        <!ENTITY 书社 "urn:fdc:ladys.computer:20231231:Shu1She4">
 ]>
 <transform
This page took 0.056605 seconds and 4 git commands to generate.