- <xslt:variable name="uri" select="$included/书社vocab:hasParsedFile/@nfo:fileUrl"/>
- <xslt:variable name="expanded">
- <xslt:apply-templates select="document($uri)" mode="书社:expand">
- <xslt:with-param name="identifier" select="$identifier"/>
- </xslt:apply-templates>
- </xslt:variable>
- <xslt:for-each select="exsl:node-set($expanded)/node()">
- <xslt:copy>
- <xslt:choose>
- <xslt:when test="self::html:*">
- <xslt:attribute name="itemscope">itemscope</xslt:attribute>
- <xslt:attribute name="itemtype">
- <xslt:text>
- <text>&书社;:embed</text>
- </xslt:text>
- <xslt:for-each select="exslstr:tokenize(@itemtype)/token[string()!='&书社;:document']">
+ <xslt:for-each select="$included">
+ <xslt:sort select="@rdf:about" data-type="text" lang="zxx" case-order="upper-first"/>
+ <xslt:variable name="uri" select="书社vocab:hasParsedFile/@nfo:fileUrl"/>
+ <xslt:variable name="expanded">
+ <xslt:apply-templates select="document($uri)" mode="书社:expand">
+ <xslt:with-param name="identifier" select="string(@rdf:about)"/>
+ </xslt:apply-templates>
+ </xslt:variable>
+ <xslt:for-each select="exsl:node-set($expanded)/node()">
+ <xslt:copy>
+ <xslt:choose>
+ <xslt:when test="self::html:*">
+ <xslt:attribute name="itemscope">itemscope</xslt:attribute>
+ <xslt:attribute name="itemtype">