include text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Larry

    #1

    include text

    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:con tents('ip.txt') "/>
    <xsl:value-of select="substri ng-after($txt,'fil e://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>htt p://192.168.0.2:900 0</xsl:text>

    instead of:

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

    it works...
  • Martin Honnen

    #2
    Re: include text

    Larry wrote:
    If I put this:
    >
    <xsl:text>htt p://192.168.0.2:900 0</xsl:text>
    >
    instead of:
    >
    <xsl:value-of select="ext:con tents('ip.txt') "/>
    ext:contents looks like an extension function. Which XSLT processor do
    you use, how is that extension function defined?


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    Working...