Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Very basic XML/XSLT problem
06-03-2009, 08:53 PM #1
- Join Date
- Jun 2009
- Thanked 0 Times in 0 Posts
Very basic XML/XSLT problem
Hi there, I'm trying to figure out how to accomplish this seemingly simple task with XML/XSLT, but I can't figure out the best way to go about it.
Here is my XML document, ali.xml:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="layouts/ali.xsl"?>
<title>Ch Wildside's Why Not</title>
<breeder>Wildside and Calix</breeder>
As you can see, there are two instances of the <thumbs> element.
What I am trying to accomplish is this: I want the XML page to display each instance of the <thumbs> element automatically on the page using XSL, while at the same time having a standard HREF link to the bigger version of each image. Essentially it will be a little thumbnail gallery generated from the list of <thumb> elements in the document.
Each image will have its own path, and its own URL. I figured their might be an easy way to do this by simply using <template> in XSL, but I'm having a hard time figuring out how I would do it. Any help would be appreciated. Sorry if this sounds really dumb and overcomplicated for what needs to be done.