include text

L

Larry

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
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top