Subject: Re: [xsl] Running a stylesheet with Python From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 27 Aug 2025 16:59:07 -0000 |
So this looks absolute to me, here is the definition<xsl:text>../../../../asciidoc/modules/</xsl:text>
B B B B <xsl:param name="srcPath" B B B B B B B select="substring-before(base-uri(.), tokenize(base-uri(.), '/')[last()])"/>
B B B B <xsl:variable name="MODULES_LOC" >
B B B B B B B <xsl:choose>
B B B B B B B B B B B <xsl:when test="$MODE='p1'">
B B B B B B B B B B B B B B B
B B B B B B B B B B B </xsl:when> B B B B B B B B B B B <xsl:otherwise> B B B B B B B B B B B B B B B <xsl:text>../asciidoc/modules/</xsl:text> B B B B B B B B B B B </xsl:otherwise> B B B B B B B </xsl:choose> B B B B </xsl:variable>
B B B B <xsl:variable name="PARTIALS" select="substring-after(concat($srcPath, $MODULES_LOC, 'ROOT/partials/'), 'file:')"/>
It is based upon the input XML file and then adds a relative path from there.
I don't think PARTIALS contains an absolute file: URI if you explicitly strip the `file:` part of the URI with substring-after. An absolute file: URI starts with `file:`, so don't strip that.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Running a stylesheet with, dvint@xxxxxxxxx | Thread | [xsl] Python and XSLT pt2, dvint@xxxxxxxxx |
Re: [xsl] Running a stylesheet with, dvint@xxxxxxxxx | Date | [xsl] Python and XSLT pt2, dvint@xxxxxxxxx |
Month |