Solved

Hyperlink click on main xsl to call another xsl

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

911 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

15 Experts available now in Live!

Get 1:1 Help Now