#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2006
    Posts
    3
    Rep Power
    0

    Question Relative Path in XSL


    Hello,

    I am new to XML/XSL. I have a XSL file which I want to set a file path relative to the xsl.

    The XSL file is in the same directory as the file "Image.gif".

    Full path works:
    <xsl:variable name="BackgroundImage">url(C:\Temp\Image.gif)</xsl:variable>

    This doesn't work:
    <xsl:variable name="BackgroundImage">url(Image.gif)</xsl:variable>

    Please advise.

    Thank you.
    Jon
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,141
    Rep Power
    9398
    What matters is how you use that variable, not where you define it.

IMN logo majestic logo threadwatch logo seochat tools logo