Troubleshooting
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 /> </xsl:template>
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 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.