]> Lady’s Gitweb - Shushe/commitdiff
Fix transform from sometimes expanding twice
authorLady <redacted>
Sat, 3 Aug 2024 16:56:59 +0000 (12:56 -0400)
committerLady <redacted>
Sat, 3 Aug 2024 18:06:54 +0000 (14:06 -0400)
The default behaviour for processing expanded replacements of
`<书社:link>` elements was to expand them again, which was wrong,
beccause they have already been expanded once. They should just be
copied instead.

This line was probably copied from the default behaviour for
`<书社:link>` elements which are not expanded or replaced, where it is
the correct behaviour.

lib/catalog2transform.xslt

index 88644aa938cadf19ac3c9af510981b06377ab4c0..3cb8a2d6a540d24a032683267c2c451130bffc5a 100644 (file)
@@ -378,7 +378,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                                                        <xslt:copy-of select="@*[not(namespace-uri()='' and (local-name()='itemscope' or local-name()='itemtype'))]|node()"/>
                                                                                </xslt:when>
                                                                                <xslt:otherwise>
                                                                                        <xslt:copy-of select="@*[not(namespace-uri()='' and (local-name()='itemscope' or local-name()='itemtype'))]|node()"/>
                                                                                </xslt:when>
                                                                                <xslt:otherwise>
-                                                                                       <xslt:apply-templates select="@*|node()" mode="书社:expand"/>
+                                                                                       <xslt:copy-of select="@*|node()"/>
                                                                                </xslt:otherwise>
                                                                        </xslt:choose>
                                                                </xslt:copy>
                                                                                </xslt:otherwise>
                                                                        </xslt:choose>
                                                                </xslt:copy>
This page took 0.105518 seconds and 4 git commands to generate.