- <variable name="subdir">
- <choose>
- <when test="starts-with($parent, 'about:shushe?include=')">
- <text>/includes/</text>
- </when>
- <when test="starts-with($parent, 'about:shushe?source=')">
- <text>/sources/</text>
- </when>
- </choose>
- </variable>
- <for-each select="document(concat($builddir, $subdir, @书社vocab:path), .)//书社:link[@xlink:show='embed']">
+ <variable name="uri" select="书社vocab:hasParsedFile/@nfo:fileUrl"/>
+ <for-each select="document($uri)//书社:link[@xlink:show='embed']">