[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Developing an image browser in XSL
Hi, I'm thinking of developing an image browser using just XML & XSL (which would be put together to generate HTML). and I was wondering if anyone had any suggestions. By imagebrowser I mean a web interface for selecting an image to put on your web page Here's what I'm thinking: 1) A directory of images 2) XML files (residing in each directory) holding all the information regarding the images (URL, width, height etc) in a particular directory (a seperate XML file for each directory). 3) XML files (residing in each directory) holding all the information regarding the directories (the names of all the sub directories) in a particular directory (a seperate XML file for each directory). 4) An XSL file which would be capable of displaying portions of the XML files and generating next/previous links for navigating through the rest of the information. 5) Some script which would recurse through the directory and apply the XSL file to the XML files and generate static HTML pages which would comprise an "imagebrowser". So for example a directory DIR1 may have sub directories: SUB_1 SUB_2 ... SUB_N and a DIR1_CATEGORIES.xml file. It may also have images: IMAGE_1 IMAGE_2 ... IMAGE_N and a DIR1_IMAGES.xml file I would then need an XSL file which would be capable of displaying portions of the XML files (given an offset and a displaysize parameter). For example given an offset of 4 and a display size of 5, I would want the XSL file to display images 4 through 9 and generate the Next/Previous buttons (by generate I mean in the resulting HTML page). I cannot figure out how to do this kind of logic in XSL (XSL seems limited in this regard since it's not straigtforward to do something like this - perhaps because it wasn't intended for such a purpose). Thoughts ? Suggestions ? Am I approaching this correctly (or should I be doing something completely different) ? Has anyone tackled something like this ? Any suggestions would be greatly appreciated. Thanks :-) -Sher XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|