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. Advertisements

  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. Advertisements

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:
    775
    Victor Bazarov
    Aug 15, 2003
  2. Rolf Magnus
    Replies:
    2
    Views:
    800
    Karl Heinz Buchegger
    Nov 28, 2003
  3. Elie Nader
    Replies:
    1
    Views:
    855
  4. Aguilar, James
    Replies:
    2
    Views:
    824
    Aguilar, James
    Jul 16, 2004
  5. Victor Bazarov

    #include "file" -vs- #include <file>

    Victor Bazarov, Mar 5, 2005, in forum: C++
    Replies:
    4
    Views:
    808
    Exits Funnel
    Mar 6, 2005
  6. Tuckers
    Replies:
    18
    Views:
    790
    ThosRTanner
    May 18, 2005
  7. Andreas Bogenberger
    Replies:
    3
    Views:
    1,271
    Andreas Bogenberger
    Feb 22, 2008
  8. Malcolm Greene
    Replies:
    1
    Views:
    561
    Martin v. Loewis
    Apr 16, 2010
Loading...