Troubleshooting

Handling Problems with transformNode

In working with the MSXML parser, I’m using transformNode() to apply a style sheet to a document I’ve created in memory. The problem is, the result of the transformation comes back blank.

In the example in this chapter, the ASP script uses an include to incorporate the XML-generating ASP script and render it.

However, you might be tempted to use the Microsoft-specific transformNode method of the DOM to apply the style sheet to the XML document directly. The result is a string that you could output using Response.Write, for example.

However, there seems to be a problem with the MSXML parser that prevents this from working properly with a dynamically generated style sheet. The problem disappears ...

Get Special Edition Using XSLT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.