X-Git-Url: https://git.ladys.computer/Shushe/blobdiff_plain/56fd28bc4072fcc73a486633981d91b92edb51ae..bc1b63801488992c309f0b8bd1d5a772b7e5645e:/transforms/metadata.xslt?ds=inline

diff --git a/transforms/metadata.xslt b/transforms/metadata.xslt
index d1b19d1..71a10c5 100644
--- a/transforms/metadata.xslt
+++ b/transforms/metadata.xslt
@@ -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