[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem retaining HTML tags during XSL transformat
Abel Braaksma wrote:
<!-- matches text nodes without newline --> <xsl:template match="text()[not(contains(., ' '))]"> <xsl:value-of select="normalize-space(.)"/> </xsl:template> This is better written as follows, to prevent ambiguity and to let it perform as "catch-all" without added complexity. <!-- matches text nodes without newline --> <xsl:template match="text()"> <xsl:value-of select="normalize-space(.)"/> </xsl:template>
|
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
|