Subject: Re: [xsl] Running a stylesheet with Python From: "dvint@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 27 Aug 2025 16:24:25 -0000 |
<xsl:variable name="MODULES_LOC" > <xsl:choose> <xsl:when test="$MODE='p1'"> <xsl:text>../../../../asciidoc/modules/</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>../asciidoc/modules/</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:variable>
<xsl:template name="build-antora-yml"> <xsl:param name="START-PAGE"/> <xsl:param name="COLLECTION-TITLE"/>
<!-- Process the values in the vars file to create the variables --> <xsl:for-each select="document($varFILE)/variables/variable"> <xsl:variable name="var" select="normalize-space(.)"/> <xsl:if test="$var != ''"> <xsl:value-of select="ping:antoraformat($var, 'noteditable')"/> <xsl:value-of select="$RETURN"/> </xsl:if> </xsl:for-each>
</xsl:result-document> </xsl:template>
On 27/08/2025 00:34, dvint@xxxxxxxxx wrote:I'm not seeing where the output is escaping. So I tried getting rid of the call template like this:
\xA0\xA0\xA0\xA0\xA0\xA0\xA0 <xsl:result-document href="{concat($PARTIALS, $topicid, '_EP.adoc')}">
So the question is whether your attempt with
\xA0 concat($PARTIALS, $topicid, '_EP.adoc')
constructs an absolute file URI or whether it ends up being a relative URI.
In the latter case I think, you will get the error as then, as Michael already pointed out, Saxon tries to resolve the relative URI against the base output URI you haven't set.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Running a stylesheet with, dvint dvint@xxxxxxxx | Thread | Re: [xsl] Running a stylesheet with, Martin Honnen martin |
Re: [xsl] Running a stylesheet with, dvint dvint@xxxxxxxx | Date | Re: [xsl] Running a stylesheet with, Martin Honnen martin |
Month |