Solved

Hyperlink click on main xsl to call another xsl

Posted on 2011-03-21
3
291 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
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.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…
Suggested Courses

630 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