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

setParameter()

Subject: setParameter()
From: "Luke Ambrogio" <luke.ambrogio@xxxxxxxxxxxx>
Date: Mon, 23 Sep 2002 14:46:56 +0200
setparameter
Hi guys and gals,

The following javascript code should retrieve a querystring value and 
assign its value to a xsl:param in a stylesheet, but its not changing 
the value of sector can anyone identify why?


  var myXMLHTTPRequest = new XMLHttpRequest();
  myXMLHTTPRequest.open("GET", "example.xsl", false);
  myXMLHTTPRequest.send(null);

  xslStylesheet =myXMLHTTPRequest.responseXML;
  xsltProcessor.importStylesheet(xslStylesheet);

  if (getURLParams("s") !=null)
  { 
   xsltProcessor.setParameter(null, "sector", getURLParams("s"));

   myXMLHTTPRequest =new XMLHttpRequest();
   myXMLHTTPRequest.open("GET", "exmaple.xml", false);
   myXMLHTTPRequest.send(null);
  }

regards
Luke

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.