[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: viewing details of selected item

Subject: RE: viewing details of selected item
From: "Keith" <keith@xxxxxxxxxxxxx>
Date: Tue, 7 Nov 2000 10:12:49 -0600
javascript show selected item
Many, many thanks to Jeni!
I had been working on this for a couple of days now and was going crazy.
With Jeni's help (and the addition of
POCBody.innerHTML = XSLTProcessor.output;
(from XSTL Pog ref pg 608) everything is working great!
I don't know why everyone was complaining last week, when this list is
up...great things happen!

Keith Brooks
Software Developer
Global eTelecom
Keith@xxxxxxxxxxxxxxxxxx



you're not using global (stylesheet) parameters, which you need to do
in order to pass information into the stylesheet and thus alter how
it's processed.

may need to put quotes around the value being passed to the function:


<input type="button" onclick="javascript:GetDetails('{@pocID}') />

Within the javascript function, you should have something like:

function GetDetails(id) {
  ...
  XSLStylesheet = new ActiveXObject('Msxml2.XSLTemplate');
  XSLStylesheet.stylesheet = XSLTDOM;
  XSLTProcessor = XSLStylesheet.createProcessor();

  XSLTProcessor.input = XMLDOM;
  XSLTProcessor.addParameter('show', id);
  XSLTProcessor.transform();
  ...
}

<xsl:param name="show" />

 you might only apply templates to
those with a matching ID:

  <xsl:apply-templates select="POC[@pocID = $show]" mode="details" />

I hope that this helps:

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.