]> Lady’s Gitweb - Shushe/commitdiff
Correct syntax for X·Path booleans
authorLady <redacted>
Wed, 27 Mar 2024 03:57:31 +0000 (23:57 -0400)
committerLady <redacted>
Wed, 27 Mar 2024 03:57:31 +0000 (23:57 -0400)
The correct syntax is `true()` and `false()`; `true` and `false` refer
to elements with those names.

lib/catalog2parser.xslt
lib/catalog2transform.xslt

index 1faa880f7e619a30cf508c597dbcc5a2a369f668..a834d15f6052485d1827ed2171e04f5e67c5d10f 100644 (file)
@@ -23,11 +23,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
        <template match="/">
                <xslt:transform version="1.0">
                        <xslt:param name="BUILDTIME" select="'1972-12-31T00:00:00Z'"/>
-                       <xslt:param name="CKSUM" select="false"/>
-                       <xslt:param name="IDENTIFIER" select="false"/>
-                       <xslt:param name="SRCREV" select="false"/>
+                       <xslt:param name="CKSUM" select="false()"/>
+                       <xslt:param name="IDENTIFIER" select="false()"/>
+                       <xslt:param name="SRCREV" select="false()"/>
                        <xslt:param name="SRCTIME" select="'1972-12-31T00:00:00Z'"/>
-                       <xslt:param name="THISREV" select="false"/>
+                       <xslt:param name="THISREV" select="false()"/>
                        <xslt:variable name="书社:parsers">
                                <html:dl>
                                        <for-each select="//catalog:uri">
index b53e12ab9f29bed8f2bc8ae827e38377eecb9452..ce00cc4b4a0e8ea6cfd1a8c52ffed6ff3cb1ccdc 100644 (file)
@@ -27,13 +27,13 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
        <template match="/">
                <xslt:transform exclude-result-prefixes="catalog exsl exslstr" version="1.0">
                        <xslt:param name="BUILDTIME" select="'1972-12-31T00:00:00Z'"/>
-                       <xslt:param name="CKSUM" select="false"/>
+                       <xslt:param name="CKSUM" select="false()"/>
                        <xslt:param name="CATALOG" select="'catalog'"/>
-                       <xslt:param name="IDENTIFIER" select="false"/>
+                       <xslt:param name="IDENTIFIER" select="false()"/>
                        <xslt:param name="PATH" select="'/unknown'"/>
-                       <xslt:param name="SRCREV" select="false"/>
+                       <xslt:param name="SRCREV" select="false()"/>
                        <xslt:param name="SRCTIME" select="'1972-12-31T00:00:00Z'"/>
-                       <xslt:param name="THISREV" select="false"/>
+                       <xslt:param name="THISREV" select="false()"/>
                        <xslt:variable name="书社:source" select="/"/>
                        <xslt:variable name="书社:expansion">
                                <xslt:apply-templates select="$书社:source/node()" mode="书社:expand"/>
@@ -51,7 +51,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                </xslt:include>
                        </for-each>
                        <xslt:template name="书社:apply-attributes">
-                               <xslt:param name="and-version" select="false"/>
+                               <xslt:param name="and-version" select="false()"/>
                                <xslt:param name="context-nodes" select="/.."/>
                                <xslt:param name="destination-nodes" select="/.."/>
                                <xslt:variable name="additional-attributes" select="$context-nodes/@*"/>
@@ -230,7 +230,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                        <xslt:choose>
                                                <xslt:when test="$result-nodes/@书社:disable-output-wrapping|exsl:node-set($书社:result)//书社:apply-attributes-to-root/@书社:disable-output-wrapping">
                                                        <xslt:call-template name="书社:apply-attributes">
-                                                               <xslt:with-param name="and-version" select="true"/>
+                                                               <xslt:with-param name="and-version" select="true()"/>
                                                                <xslt:with-param name="context-nodes" select="exsl:node-set($书社:result)//书社:apply-attributes-to-root"/>
                                                                <xslt:with-param name="destination-nodes" select="$result-nodes"/>
                                                        </xslt:call-template>
@@ -242,7 +242,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                                </xslt:call-template>
                                                        </xslt:variable>
                                                        <xslt:call-template name="书社:apply-attributes">
-                                                               <xslt:with-param name="and-version" select="true"/>
+                                                               <xslt:with-param name="and-version" select="true()"/>
                                                                <xslt:with-param name="context-nodes" select="exsl:node-set($书社:result)//书社:apply-attributes-to-root"/>
                                                                <xslt:with-param name="destination-nodes" select="exsl:node-set($wrapped-result)/node()"/>
                                                        </xslt:call-template>
This page took 0.090833 seconds and 4 git commands to generate.