Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Using XSLT to transform the file system

From: BrianNicholson@-----------.---------.---
To: 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.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent