This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSLT to summarise an XSLT
- From: "Mac Rost" <mrost at travelnow dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 27 Aug 2002 10:42:35 -0500
- Subject: RE: [xsl] XSLT to summarise an XSLT
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@travelnow.com
-----Original Message-----
From: Macaulay,Malcolm (US) [mailto:Malcolm.Macaulay2@cnare.com]
Sent: Tuesday, August 27, 2002 10:31 AM
To: xsl-list@lists.mulberrytech.com
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