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

Developing an image browser in XSL

Subject: Developing an image browser in XSL
From: Sher.Khurshid@xxxxxxxxxxxxxxxxxxx
Date: Wed, 9 May 2001 09:56:33 -0400
xml image browser
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


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.