Subject: RE: [xsl] displaying xml file styled with xsl within an external html file From: Ben Fry <Ben_Fry@xxxxxxxxxxxxx> Date: Fri, 12 Jul 2002 11:19:51 +0100 |
Tim, A bit off topic for this newsgroup XSLTalk (see www.topxml.com) would be a good place but this code may help ASP file; <html> <head> <body> ... <div> <!-- Put xslt transform here --> <% set xmlDoc=server.createObject("Msxml2.FreeThreadedDOMDocument.3.0") set xslDoc=server.createObject("Msxml2.FreeThreadedDOMDocument.3.0") xmldoc.async = false xslDoc.async = false xmlDoc.load server.mapPath("/xml/yourfile.xml") if (xmlDoc.parseError.errorCode <> 0) then <!-- Error processing here--> end if xslDoc.load server.mapPath("/xsl/yourfile.xsl") if (xslDoc.parseError.errorCode <> 0) then <!-- Error processing here--> end if response.write xmlDoc.transformNode(xslDoc) set xmlDoc = nothing set xslDoc = nothing %> </div> <!-- Your additional data/processing --> </body> </head> </html> Regards, Ben Fry -----Original Message----- From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx [mailto:TSchutzerWeissmann@xxxxxxxxxxxxxxxx] Sent: 12 July 2002 10:31 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] displaying xml file styled with xsl within an external html file >>What environment are you doing this in? > Embarrassingly, ASP. So, you make some html with an ASP script, then you want to add in some html made using xsl? Can't you just have a function in the ASP script that calls MSXML to do the xsl transformation? That way xslt isn't a foreign process, just an extension of ASP. Tom XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list ===================================================================== DISCLAIMER 1. The information contained in this E-mail is confidential. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this E-mail. Such unauthorised use may be unlawful. If you have received this E-mail in error, please inform us immediately and delete it and all copies from your system. 2. The views expressed in this E-mail are those of the author, and do not represent the views of AMT-Sybex Group Ltd., its associates or subsidiaries, unless otherwise expressly indicated. In the avoidance of doubt, the insertion of the name of AMT-Sybex Group Ltd., its associate or subsidiary under the name of the sender may constitute an express indication that the views stated in the Mail are those of the named company. ===================================================================== For more information on the AMT Sybex group visit: http://www.amt-sybex.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XPath Question, Emmanuel Oviosa | Thread | [xsl] XSLT to find missing characte, Kirk Allen Evans |
[xsl] XPath Question, Emmanuel Oviosa | Date | RE: [xsl] substring function, Américo Albuquerque |
Month |