Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 14th, 2010, 03:34 PM
Authorized User
 
Join Date: Feb 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default applying XSL stylesheet from an HTML hyperlink

I'm trying to figure out of this is possible, and I've been unable to find a definitive answer.

I have and HTML webpage, from which I invoke an XML page with a link such as this:
<a href="http://www.kendietz.com/cascades/cascades.xml">Link</a>
The cascades.xml file has an xml-stylesheet declaration identifying an xsl stylesheet to be used. My site is a photo gallery, and, until now, this has worked great. For reference, here is my site http://www.kendietz.com/

Now, however, I am trying something new. I am trying to incorporate a popular third party javascript gallery viewer called Lightbox Gallery (http://lightboxgallery.snier.com/). This script uses an XML file to define the list of images, but it doesn't work if the xml-stylesheet declaration is present. I currently have it working here http://www.kendietz.com/lightbox.html, but it is using modified versions of the original XML files.

I would like to figure out how to use the same XML file to define both the old and the new gallery views. In other words, I want to be able to call the XML file with the option of whether to use the XSL stylesheet.

My initial thought was to remove the xml-stylesheet declaration from the XML files, and specify the XSL stylesheet from the anchor tag in the HTML page. But this doesn't appear to be possible, or I haven't been able to figure out how.

Any advice would be appreciated.

Thanks,
Ken





Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing xsl variable in hyperlink querystring b.preetam XSLT 5 November 13th, 2009 10:42 AM
HTML hyperlink problem thunderhead Apache Tomcat 0 May 15th, 2008 01:39 AM
xml to html with xsl boblavinsky XSLT 4 January 5th, 2007 05:30 AM
scx to html, using a xsl stylesheet bluetorch XSLT 0 October 18th, 2005 11:38 AM
XSL Stylesheet Problem Ben Horne XSLT 4 March 6th, 2004 05:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.