|
Subject: [xsl] [XSLT 2] base-uri of input's dir From: Tobias Reif <tobiasreif@xxxxxxxxxxxxx> Date: Sat, 14 Jun 2003 19:01:02 +0200 |
<xsl:template match="textdata[@fileref]">
<xsl:variable name="dir_abs"
select="replace(base-uri(/),'[^\/]+$','')"/>
<!--
AFAICS, basically resolve-uri()
concatenates if @fileref is relative, and
leaves unchanged if it's absolute
-->
<xsl:variable name="file_abs"
select="resolve-uri(@fileref,$dir_abs)"/>
<xsl:copy-of select="unparsed-text($file_abs,'utf-8')"/>
</xsl:template><xsl:template match="textobject[textdata[@fileref]]"> <xsl:apply-templates/> </xsl:template>
-- http://www.pinkjuice.com/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] [XSLT 2] rescue, Varley, Roger | Thread | RE: [xsl] [XSLT 2] base-uri of inpu, Michael Kay |
| [xsl] [XSLT 2] rescue, Tobias Reif | Date | [xsl] [XSLT 2] rescue; how to recov, Tobias Reif |
| Month |