More clairification...
xml.loadXML(xml.transformNode(xsl)); if transforming the xml using the xml already loaded.. so the source xml is from the target object Sincerely, Robert Jenkin Surecomp Services, Inc. 2 Hudson Place, 4th Floor Hoboken, NJ 07030 Skype: robert.jenkin Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537 http://www.Surecomp.com -----Original Message----- From: rob.kob...@gmail.com [mailto:rob.kob...@gmail.com] On Behalf Of Rob Koberg Sent: Wednesday, February 23, 2011 9:51 AM To: Tomcat Users List Cc: Robert Jenkin Subject: Re: loading an xsl file in javascript > // sort the xml using xsl stylesheet > alert(getUrl() + "/reportwriter/xsl/treesort.xsl"); > xsl.load(getUrl() + "/reportwriter/xsl/treesort.xsl"); -------------^ > xml.loadXML(xml.transformNode(xsl)); ---------------------------------^ > > // Load XSL > alert(getUrl() + "/reportwriter/xsl/tree.xsl"); > xsl.load(getUrl() + "/reportwriter/xsl/tree.xsl"); Unless it is a typo, you are transforming your xml before you load it. You might want to check out Sarissa for client side transforms. best, -Rob This mail was sent via Mail-SeCure System. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org