$chunk-output-base-uri
$chunk-output-base-uri — Output base URI for chunks.
Synopsis
|<xsl:param
|name="chunk-output-base-uri"
|as="xs:string">
|<xsl:choose>
|<xsl:when test="not($v:chunk)"><!-- it doesn't actually matter -->
|<xsl:sequence select="''"/>
|</xsl:when>
|<xsl:when use-when="function-available('ext:cwd')" test="true()">
|<xsl:sequence select="ext:cwd()"/>
|</xsl:when>
|<xsl:otherwise>
|<xsl:message terminate="yes" select="'You must specify the $chunk-output-base-uri'"/>
|</xsl:otherwise>
|</xsl:choose>
|</xsl:param>
Description
This parameter identifies the output directory where “chunks” will be stored. If the stylesheet is not producing chunked results (see Section 2.6, ““Chunked” output”), this parameter has no effect.
If the ext:cwd()
extension function (see
Section 2.5, “Extension functions”) is available, its value will be the default
value for this parameter. If the extension isn’t available, you must
provide a value for this parameter.
If you’re using the stylesheets from Maven, the static-base-uri()
will be something like https://cdn.docbook.org/release/…
and resolving the current working directory against that won’t be useful. It’s
better in those cases to specify the parameter explicitly with a file:
URI. (And note that it may need to be a file:/path
URI, not a
file:///path
URI, in order to match correctly.)