[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xsl-list
Subject:    Re: [xsl] document with absolute path
From:       Maurice Mengel <mauricemengel () gmail ! com>
Date:       2010-04-23 20:28:20
Message-ID: z2ibf8dbb631004231328paf144eefpc1fa9d977d9ba7e0 () mail ! gmail ! com
[Download RAW message or body]

thanks!

Michael's answer brought me on the right track:

<xsl:variable name="dictloc"
select="document('file:///c:/cygwin/home/Mengel/usr/levelup/lib/mpxvok.xml')"/>
<xsl:value-of select="$dictloc/mpxvok:mpxvok" />

does work, the error is afterward...



On Fri, Apr 23, 2010 at 10:06 PM, Dan Haley <dhaley77@gmail.com> wrote:
> Try using "/cygdrive/c" instead of "c:".
>
> Maurice Mengel wrote:
>>
>> Hi,
>>
>> I am trying to open a file using document and would prefer absolute
>> path. I am using saxon under windows (with cygwin) as you can guess
>> from my uri. Before I did it with relative path, then it worked, but
>> now not anymore. What am I doing wrong?
>>
>>        <xsl:variable name="dictloc"
>>
>> select="document('File:///c:/cygwin/home/Mengel/usr/levelup/lib/mpxvok.xml')"/>
>> ....
>>            <xsl:when test="exists
>> ($dictloc/mpxvok:mpxvok/mpxvok:context[@name eq $dictname])">
>>
>> When I enter File:///c:/cygwin/home/Mengel/usr/levelup/lib/mpxvok.xml
>> in explorer it opens the right file.
>>
>> Thanks!
>> Maurice
>>
>> --~------------------------------------------------------------------
>> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
>> or e-mail: <mailto:xsl-list-unsubscribe@lists.mulberrytech.com>
>> --~--
>>
>>
>>
>
> --~------------------------------------------------------------------
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: <mailto:xsl-list-unsubscribe@lists.mulberrytech.com>
> --~--
>
>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@lists.mulberrytech.com>
--~--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic