[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: document with absolute path

Subject: Re: document with absolute path
From: Maurice Mengel <mauricemengel@xxxxxxxxx>
Date: Fri, 23 Apr 2010 22:28:20 +0200
Re:  document with absolute path
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@xxxxxxxxx> 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?
>>
>> B  B  B  B <xsl:variable name="dictloc"
>>
>>
select="document('File:///c:/cygwin/home/Mengel/usr/levelup/lib/mpxvok.xml')"
/>
>> ....
>> B  B  B  B  B  B <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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.