Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Using XSLT to transform the file system Using XSLT to transform the file systemTo: NULL Date: 7/8/2008 11:04:00 AM
Hello,
In the web application I'm currently working on, I want to be able to
display the file system to the user -- but I want the display to be more of a
"virtual" file system. For example, if the actual file system is the
following:
Documents And Settings
Brian
My Documents
My Music
Bob
My Documents
My Music
Katie
My Documents
My Music
Inetpub
Scripts
wwwroot
Program Files
Program 1
Program 2
Program 3
Program 4
I'd want be able to manipulate it so the user sees something different, such
as:
Documents [which points to the users My Documents folder]
Music [which is a merged folder of all users' music]
Scripts [originally a subfolder of Inetpub]
wwwroot [originally a subfolder of Inetpub]
Useful Programs [renamed]
Program 1 [hide folders the user shouldn't see]
Program 3
Something like this would be a nightmare to hard-code into the actual
application, so I was trying to figure out another way to create the layer
that would handle the file system logic. As of now, I'm considering
something like having the program create a temporary XML file of the current
state of the files ystem. Then, an XSLT file will be used to apply all the
transformations to make an XML representing the virtual file system. Lastly,
the program will read this transformed XML file to populate the tree.
I know nothing about XSLT (and I know very little about XML in general), so
I was wondering if this seemed like a reasonable approach to what I'm trying
to accomplish before I spend hours learning and attempting this. Am I on the
right track or is there a better method for all of this?
Thank you for your time.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
