+ <variable name="dependencies" select="exsl:node-set($dependencies-fragment)"/>
+ <copy>
+ <apply-templates select="@*"/>
+ <attribute name="书社vocab:destination">
+ <value-of select="$destination"/>
+ </attribute>
+ <apply-templates select="node()"/>
+ <for-each select="$dependencies/书社:dependency">
+ <书社vocab:hasDependencyOn rdf:resource="{.}"/>
+ </for-each>
+ <for-each select="$dependencies/书社:recursive-dependency">
+ <书社vocab:hasRecursiveDependencyOn rdf:resource="{.}"/>
+ </for-each>
+ </copy>
+ </template>
+ <template match="//书社vocab:IncludeFile[nie:interpretedAs/nfo:PlainTextDocument]" priority="1">
+ <variable name="dependencies-fragment">
+ <apply-templates select="." mode="书社:dependencies"/>
+ </variable>
+ <variable name="dependencies" select="exsl:node-set($dependencies-fragment)"/>