Solved

Hyperlink click on main xsl to call another xsl

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

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

Suggested Solutions

Title # Comments Views Activity
The Best Website Creation Tools 14 122
XML response optional elements 12 80
XML Removal- Powershell 4 41
MS Access VBA Object Variable Not Set. Can't figure this out. 11 65
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 …
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.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

710 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