RE: XSLT to summarise an XSLT
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: 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
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