include text

Discussion in 'XML' started by Larry, Feb 6, 2007.

  1. Larry

    Larry Guest

    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...
    Larry, Feb 6, 2007
    #1
    1. Advertising

  2. Larry wrote:

    > If I put this:
    >
    > <xsl:text>http://192.168.0.2:9000</xsl:text>
    >
    > instead of:
    >
    > <xsl:value-of select="ext:contents('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/
    Martin Honnen, Feb 6, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Danny Anderson
    Replies:
    5
    Views:
    485
    Victor Bazarov
    Aug 15, 2003
  2. Rolf Magnus
    Replies:
    2
    Views:
    589
    Karl Heinz Buchegger
    Nov 28, 2003
  3. Andreas Bogenberger
    Replies:
    3
    Views:
    888
    Andreas Bogenberger
    Feb 22, 2008
  4. Malcolm Greene
    Replies:
    1
    Views:
    422
    Martin v. Loewis
    Apr 16, 2010
  5. Replies:
    0
    Views:
    588
Loading...

Share This Page