Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?
2006-10-17 07:39:23
Andrew Welch wrote:
Instead of using xml:base why not just create a parameter $path and
then modify all of your paths in the stylesheet to contain that
parameter, eg:
<xsl:param name="path" select="'../../'" as="xs:string"/>
I had that before. But it won't work for <xsl:import> and the likes. So
I still need separate ways for separate situations in the stylesheet. In
other words, the DRY (don't repeat yourself) principle cannot hold here
(but who said that xslt was pragmatic in the first place, but I like to
think that way).
But I do use some special calculation on the paths for external files
that need to be transformed. There was a previous thread about this, I
believe on the Saxon list, where I also had some trouble doing a precise
path calculation (I needed both relative and absolute path). But that is
fixed now.
-- Abel
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, (continued)
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, David Carlisle
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Abel Braaksma
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Abel Braaksma
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Abel Braaksma
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, David Carlisle
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Abel Braaksma
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Andrew Welch
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?,
Abel Braaksma <=
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT, Colin Adams
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT, Colin Adams
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT, Abel Braaksma
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT, Colin Adams
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, George Cristian Bina
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Abel Braaksma
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, George Cristian Bina
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Abel Braaksma
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, George Cristian Bina
|
Previous by Date: |
Re: [xsl] Question about table column width in XSLT/XSLFO, G. Ken Holman |
Next by Date: |
Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, George Cristian Bina |
Previous by Thread: |
Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Andrew Welch |
Next by Thread: |
Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT, Colin Adams |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|