Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Hyperlink click on main xsl to call another xsl

Posted on 2011-03-21
3
Medium Priority
?
294 Views
Last Modified: 2013-11-18
Hi,
I'm not sure how to do this.  I have an XML file (InventoryData.xml), a main XSL file (yarn.xsl), and a detailed XSL file (brand.xsl).
What I want it to do is on the Main xsl file, it will list out all different Brand names from the xml file that are hyperlinks.  When the user clicks on the hyperlink it will display the Detailed xsl file.  I'm assuming javascript is needed for the hyperlink???
I hope this makes sense...
I have attached the files.
Thanks in advance for any help with this.

InventoryData.xml
yarn.xsl
brand.xsl
0
Comment
Question by:BeckyBair
  • 2
3 Comments
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 2000 total points
ID: 35196533
Since this ios open for a while, I am going to tell you how to do it.
But you need to do it yourself. I don't have time to show you the code

You will need javascript, that is for sure.

For giving you cross browser XSLT without to much hassle, I recommend that you use Sarissa library, works like a charm

Create a driver file with some html body and some javascript functions
Inside the body you auto load the XML transformed with the first XSLT (over-write a named div with innerHTML)
(make sure the sarissa transform result is wellformed xml)
For the links, make calls to the javascript transformation function again, but with a different xslt
(preconstruct these links in the first XSLT), href is blank, onclick = javascript transformation, over write the ineerHTML of the same div)

I have done a zillion projects like this,; works like a charm
here is an example:
read my first four comments in this question
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/XSLT/Q_24034619.html
(skip the part as soon as it hits ASP :-)

I don't have the time to develop this for you,
but am available if you hit a brick wall doing this
0
 

Author Comment

by:BeckyBair
ID: 35198241
Thank you - I'll give it a try
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 35198465
welcome,
always welcome if you need further assistance
if eventually you need a resource to do it for you, you can contact me through email
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question