Skip to content

Commit

Permalink
use base-uri(/*) in order to take explicit xml:base att into account …
Browse files Browse the repository at this point in the history
…(base URIs don’t seem to work correctly since Saxon 9.8); remove terminating message
  • Loading branch information
gimsieke committed Apr 29, 2024
1 parent bf3bfb3 commit 1238b41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions load/xpl/load-sources.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
<xsl:for-each select="distinct-values(tokenize($uris, '\s+'))">
<xsl:variable name="uri" as="xs:string" select="."/>
<xsl:choose>
<xsl:when test="exists(collection()[base-uri() = $uri])">
<xsl:when test="exists(collection()[base-uri(/*) = $uri])">
<xsl:result-document href="{$uri}.new">
<xsl:sequence select="collection()[base-uri() = $uri]"/>
<xsl:sequence select="collection()[base-uri(/*) = $uri]"/>
</xsl:result-document>
<xsl:message terminate="yes">Loading <xsl:value-of select="$uri"/> from source port</xsl:message>
<xsl:message>Loading <xsl:value-of select="$uri"/> from source port</xsl:message>
</xsl:when>
<xsl:otherwise>
<xsl:if test="doc-available($uri)">
Expand Down

0 comments on commit 1238b41

Please sign in to comment.