[AccessD] OT directory folder as URL

MartyConnelly martyconnelly at shaw.ca
Sat Mar 15 02:44:01 CST 2003


WebDav or as MS calls it DAV (Direct Author Versioning) allows you to do 
this.
It is an an extension to HTTP protocols. WebDav sits on top of IIS 5 or 
PWS or Apache on Linux box.. SharePoint Portal uses it extensively, so 
does MS Exchange. To search a Public Web File Directory (for a local or 
remote file) setup by WebDav, you use XMLhttp, through a request like below:
The xmlhttp request object uses methods like SEARCH or PROPFIND rather 
than GET and POST.

<?xml version="1.0"?>
<g:searchrequest xmlns:g="DAV:">
<g:sql>
Select "DAV:displayname" FROM SCOPE()
</g:sql>
</g:searchrequest>

For a better VB code example using xmlhttp see:
http://support.microsoft.com/default.aspx?scid=kb;en-us;291171
HOWTO: List Public Folders by Using WebDAV

 Ok how it hooks to Windows explorer as a drive  I am not sure but there 
is a program called WebDev that does something like this at
http://www.dmcsoft.com/webdev/download/index.php3

There is a DAV mail list at www.webdav.org

The second question is easy when you double click an XML file in Windows 
explorer
It is displayed in IE after being transformed by the XSL or XSLT  file 
defaultss.xsl
into HTML script allowing you to click on "+" symbols to shrink or 
expand the tree.
View the html source of xml file, displayed in IE and the original xml 
file in notepad to see difference.
The code to do this your self

Dim source As New Msxml2.DOMDocument40
Dim stylesheet As New Msxml2.DOMDocument40

' Load data. from your xml file
source.async = False
source.Load "books.xml"
 
' Load style sheet.
'save the viewable html source into a  notepad file after typing in url 
into IE
'  res://msxml.dll/defaultss.xsl

stylesheet.async = False
stylesheet.Load "c:\xmlfiles\defaultss.xsl"

' Do the XSLT  transform and save html into a string or display or save 
to an .html file
MsgBox source.transformNode(stylesheet)


Jim Lawrence (AccessD) wrote:

>Hi Marty:
>
>Thanks for that information. :-)
>
>What I was actually thinking of when asking the question was how a drive
>letter can be translated into a html address. For example I installed a
>small program on a computer that added a drive letter, say 'X'. The new
>drive now showed in the file explorer and could be accessed from any program
>as any other drive. The interesting thing was when the drive was selected it
>actually opening an http-webdav connection to a remote server.
>
>Now the $100.00 question. It should be simple attach a remote site to a
>drive letter...but how? Unfortunately, I can not find the little program
>that could create the remote drives or an evening of hacking would sate the
>curiosity.
>
>  
>
>>res://msxml.dll/defaultss.xsl
>>    
>>
>
>Very fascinating...worthy of further research. Now where and when exactly
>does the web browser actually use this XSL code?
>
>Again Thank you...
>
>Jim
>
>-----Original Message-----
>From: accessd-admin at databaseadvisors.com
>[mailto:accessd-admin at databaseadvisors.com]On Behalf Of MartyConnelly
>Sent: Friday, March 14, 2003 1:07 PM
>To: accessd at databaseadvisors.com
>Subject: Re: [AccessD] OT directory folder as URL
>
>
>Well in IE in place of http url
>You can use
>
>file://c:\MyDir\MySubdir
>
>Other odd forms of URL strings
>If you use the WebBrowser control there is a hidden XSL file applied by IE
>to an XML file that allows the expansion and contraction of the XML  tree
>by pointing at the "+" and "-" images. So you may want to use your own XSL.
> The default XSL stylesheet is a resource in MSXML.DLL or MSXML3.DLL
>depending on the release version of XML you are using. If you want to see
>what it does, it can be retrieved in IE5 using the URL: Then view source
>
> res://msxml.dll/defaultss.xsl
>
>
>
>Jim Lawrence (AccessD) wrote:
>
>  
>
>>Hi All:
>>
>>This is a little off topic. I have seen this done but have not been able to
>>duplicate it. How can an directory folder and drive letter be made from a
>>URL (web address)?
>>
>>TIA
>>Jim
>>
>>    
>>





More information about the AccessD mailing list