- <for-each select="/rdf:RDF/nfo:LocalFileDataObject[starts-with(@rdf:about, 'about:shushe?source=')]">
- <choose>
- <when test="nie:interpretedAs/nfo:PlainTextDocument and dct:hasFormat/*/nie:interpretedAs/*[@nie:mimeType='application/xml']">
- <variable name="destination" select="document(dct:hasFormat/*[nie:interpretedAs/*[@nie:mimeType='application/xml']]/@nfo:fileUrl[1])/*/@书社:destination"/>
- <value-of select="@rdf:about"/>
- <text>|</text>
- <choose>
- <when test="$destination">
- <value-of select="$destination"/>
- </when>
- <otherwise>
- <value-of select="substring-after(@rdf:about, 'about:shushe?source=')"/>
- </otherwise>
- </choose>
- <text>
</text>
- </when>
- <otherwise>
- <value-of select="@rdf:about"/>
- <text>|</text>
- <value-of select="substring-after(@rdf:about, 'about:shushe?source=')"/>
- <text>
</text>
- </otherwise>
- </choose>
+ <for-each select="//书社vocab:SourceFile">
+ <value-of select="@rdf:about"/>
+ <text>|</text>
+ <value-of select="@书社vocab:destination"/>
+ <text>
</text>