[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:param and MSXML
Hello Ademar, the technique for injecting a parameter is processor specific. for IE u will need to use javascript code to instantiate xml and xsl object and use a method to add parameter ( no a param is not passed via URL that is neither GET nor POST will not do a thing, as it does in other frameworks or processors ). check out one of tutorials at www.bayes.co.uk/xml on filtering, should be very clear. cheers, jim fuller ----- Original Message ----- From: "Aedemar Cooke" <Aedemar.Cooke@xxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, March 14, 2002 3:28 PM Subject: xsl:param and MSXML > Hi, > I want to read a parameter from the URL and use it in my stylesheet as > displayed below > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:param name="element"/> > > <xsl:template match="/"> > <xsl:apply-templates select="/content/*[name()=$element]" > mode="wysiwyg"/> > </xsl:template> > > <xsl:template match="element1"> > <xsl:copy-of select="."/> > </xsl:template> > > <xsl:template match="element2"> > <xsl:copy-of select="."/> > </xsl:template> > > </xsl:stylesheet> > > I was using a cocoon parser to parse by XSL and my code worked fine but > then had to change to use MSXML. > > Can anyone tell me how to implement it so that it will work with MSXML. > > Thanks, > Aedemar > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|