Subject: RE: [xsl] XSLT to summarise an XSLT From: "Mac Rost" <mrost@xxxxxxxxxxxxx> Date: Tue, 27 Aug 2002 10:42:35 -0500 |
Malcolm, I know that this is probably way off target of what you want to do... I had a problem with calling a template that would only be called if a certain node was present. I had to use selectSingleNode in ASP to compare. ------------- If Not obj Is Nothing Then If Not obj.documentElement Is Nothing Then If obj.documentElement.nodeName = "Exception" Then 'TRANSFORM XML TO HTML TO CREATE ERROR DOCUMENT Set TransformBase = Server.CreateObject("Microsoft.XMLDOM") TransformBase.Load(Server.MapPath("xsl/error.xsl")) xml.Save(Server.MapPath("error.xml")) Response.write xml.transformNode(TransformBase.documentElement) Else 'TRANSFORM XML TO HTML Set TransformBase = Server.CreateObject("microsoft.XMLDOM") TransformBase.LoadXML(http.HttpRequest("http://xml-test/xsl/hotel_xsl.as p")) Response.Write xml.transformNode(TransformBase.documentElement) End If End If End If ------------------ Mac Rost Affiliate Relations/XML Developer TravelNow.com a wholly owned subsidiary of Hotel Reservations Network mailto:xml@xxxxxxxxxxxxx -----Original Message----- From: Macaulay,Malcolm (US) [mailto:Malcolm.Macaulay2@xxxxxxxxx] Sent: Tuesday, August 27, 2002 10:31 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] XSLT to summarise an XSLT I'm toying with the idea of making an XSLT to summarise a XSLT. My problem is a I have oddles of XSLTs which have the following characteristics: - lots of common templates pulled in by xsl:includes - lots of 'procedure' type templates with many parameters - lots of conditional logic For purposes of enhancing/checking the XSLTs I think there would be some merit in having an XSLT which could pull all templates into one summarised output. XSLT is unwelding when you have template calls with parameters. Multiple includes make it time-consuming to locate a template. I'm thinking the output would look something closer to procedural code like VB. Has anyone done anything along this line? Any ideas or suggestions would be greatly appreciated. cheers Malcolm 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSLT to summarise an XSLT, Robert Koberg | Thread | RE: [xsl] XSLT to summarise an XSLT, Hunsberger, Peter |
Re: [xsl] <xsl:apply-templates sele, ashu t | Date | RE: [xsl] SAXParseException, Manish Shah |
Month |