This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
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/>.
This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
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/>.
<template match="/">
<xslt:transform exclude-result-prefixes="catalog exsl exslstr" version="1.0">
<xslt:param name="BUILDTIME" select="'1972-12-31T00:00:00Z'"/>
<template match="/">
<xslt:transform exclude-result-prefixes="catalog exsl exslstr" version="1.0">
<xslt:param name="BUILDTIME" select="'1972-12-31T00:00:00Z'"/>
<xslt:variable name="书社:source" select="/"/>
<xslt:variable name="书社:expansion">
<xslt:apply-templates select="$书社:source/node()" mode="书社:expand"/>
<xslt:variable name="书社:source" select="/"/>
<xslt:variable name="书社:expansion">
<xslt:apply-templates select="$书社:source/node()" mode="书社:expand"/>
<xslt:param name="context-nodes" select="/.."/>
<xslt:param name="destination-nodes" select="/.."/>
<xslt:variable name="additional-attributes" select="$context-nodes/@*"/>
<xslt:param name="context-nodes" select="/.."/>
<xslt:param name="destination-nodes" select="/.."/>
<xslt:variable name="additional-attributes" select="$context-nodes/@*"/>
<xslt:variable name="result-nodes" select="exsl:node-set($书社:result)/node()[not(self::书社:apply-attributes-to-root)]|exsl:node-set($书社:result)/书社:apply-attributes-to-root/descendant::node()[not(self::书社:apply-attributes-to-root) and not(ancestor::*[not(self::书社:apply-attributes-to-root)])]"/>
<xslt:variable name="root-with-attributes">
<xslt:choose>
<xslt:variable name="result-nodes" select="exsl:node-set($书社:result)/node()[not(self::书社:apply-attributes-to-root)]|exsl:node-set($书社:result)/书社:apply-attributes-to-root/descendant::node()[not(self::书社:apply-attributes-to-root) and not(ancestor::*[not(self::书社:apply-attributes-to-root)])]"/>
<xslt:variable name="root-with-attributes">
<xslt:choose>
<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>
<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>
<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>
<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>