include text

Larry (archive)

Usenet Archive
Joined
Jan 13, 2000
Messages
241
Reaction score
0
Hi,

I'd like to do something like this:

<xsl:template match="key" mode="getAsUri">
<xsl:variable name="txt">
<xsl:apply-templates select="." mode="getValue" />
</xsl:variable>
<xsl:value-of select="ext:contents('ip.txt')"/>
<xsl:value-of select="substring-after($txt,'file://localhost')" disable-output-escaping="yes" /> </xsl:template>

But I can't seem to figure out how to include some text...

If I put this:

<xsl:text>http://192.168.0.2:9000</xsl:text>

instead of:

<xsl:value-of select="ext:contents('ip.txt')"/>

it works...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,051
Messages
3,104,251
Members
248,135
Latest member
tobystanx

Latest Threads

Top