Solved

Hyperlink click on main xsl to call another xsl

Posted on 2011-03-21
3
284 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 500 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now