Absolute Path in Document() in a xsl

Discussion in 'XML' started by schaf, Jun 12, 2005.

  1. schaf

    schaf Guest

    Hello !
    Im trying to access some XML Document by an absolute path with
    document() in my XSL-File.

    It looks like this:
    <xsl:param name="pData" as="xs:anyURI"/>
    <xsl:param name="sData" as="xs:anyURI"/>

    <xsl:variable name="person-ref" select="document($pData)/daten"/>
    <xsl:variable name="study-ref"
    select="document($sData)/studienArten"/>

    But if I use an absolute Path as Parameter, it does not work. I tried
    this:

    E:\sws\Studienprojekt\XML_Files\studyDefinitions.xml

    Could you help me ???

    Thanks
     
    schaf, Jun 12, 2005
    #1
    1. Advertising

  2. schaf wrote:


    > Im trying to access some XML Document by an absolute path with
    > document() in my XSL-File.
    >
    > It looks like this:
    > <xsl:param name="pData" as="xs:anyURI"/>
    > <xsl:param name="sData" as="xs:anyURI"/>
    >
    > <xsl:variable name="person-ref" select="document($pData)/daten"/>
    > <xsl:variable name="study-ref"
    > select="document($sData)/studienArten"/>
    >
    > But if I use an absolute Path as Parameter, it does not work. I tried
    > this:
    >
    > E:\sws\Studienprojekt\XML_Files\studyDefinitions.xml


    That is not a URL, as a URL you need
    file:///E:\sws\Studienprojekt\XML_Files\studyDefinitions.xml

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Jun 12, 2005
    #2
    1. Advertising

  3. In article <42ac281c$0$1125$-online.net>,
    Martin Honnen <> wrote:

    >> E:\sws\Studienprojekt\XML_Files\studyDefinitions.xml

    >
    >That is not a URL, as a URL you need
    > file:///E:\sws\Studienprojekt\XML_Files\studyDefinitions.xml


    That's still not much of a URL. Use forward slashes throughout.

    -- Richard
     
    Richard Tobin, Jun 12, 2005
    #3
    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. Matt
    Replies:
    3
    Views:
    19,716
    Sudsy
    Jul 8, 2004
  2. Replies:
    10
    Views:
    3,822
  3. Thomas Guettler
    Replies:
    3
    Views:
    790
    Andrei
    Oct 27, 2003
  4. Nigel Wilkinson
    Replies:
    2
    Views:
    420
    Nigel Wilkinson
    Jul 25, 2005
  5. James Byrne
    Replies:
    3
    Views:
    622
    James Byrne
    Sep 14, 2010
Loading...

Share This Page