Skip to content

Commit

Permalink
Allow pre/post processing transforms to be passed from the command line
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Jan 15, 2024
1 parent 9be63e0 commit 33f9423
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/xslt/docbook.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@
<xsl:when test=". instance of map(*)">
<xsl:sequence select="."/>
</xsl:when>
<xsl:when test=". instance of xs:string">
<xsl:when test=". instance of xs:string or . instance of xs:untypedAtomic">
<xsl:sequence select="map {
'stylesheet-location': resolve-uri(., base-uri(/))
'stylesheet-location': resolve-uri(., static-base-uri())
}"/>
</xsl:when>
<xsl:otherwise>
Expand All @@ -127,9 +127,9 @@
<xsl:when test=". instance of map(*)">
<xsl:sequence select="."/>
</xsl:when>
<xsl:when test=". instance of xs:string">
<xsl:when test=". instance of xs:string or . instance of xs:untypedAtomic">
<xsl:sequence select="map {
'stylesheet-location': resolve-uri(., base-uri(/))
'stylesheet-location': resolve-uri(., static-base-uri())
}"/>
</xsl:when>
<xsl:otherwise>
Expand Down Expand Up @@ -228,9 +228,9 @@
<xsl:when test=". instance of map(*)">
<xsl:sequence select="."/>
</xsl:when>
<xsl:when test=". instance of xs:string">
<xsl:when test=". instance of xs:string or . instance of xs:untypedAtomic">
<xsl:sequence select="map {
'stylesheet-location': resolve-uri(., base-uri(/))
'stylesheet-location': resolve-uri(., static-base-uri())
}"/>
</xsl:when>
<xsl:otherwise>
Expand Down

0 comments on commit 33f9423

Please sign in to comment.