Displaying Text with MSXML

No text displays in the browser when I try to run the examples in this chapter.

Check to see whether you are using Microsoft’s MSXML parser. Because Microsoft implemented its first parser before the XSLT standard was completed, its implementation of <apply-templates> did not automatically retrieve the content from a selected element. Therefore, you will not see text displayed if you are using MSXML 2.6 or older.

To solve this problem, you must add the following template rule to your style sheet:

<xsl:template match=”text()”> 
   <xsl:value-of /> 

This template rule may be placed anywhere in the style sheet after the root template rule. One quirk with this solution is that the current specification ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.