[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: saxon xmlspy discrepancy in whitespace handling
add a <xsl:strip-space elements="*"/> to your XSLT and all the whitespace nodes you don't need will be deleted by using apply-templates you pass all child nodes to the templates also the white-space only text nodes They are handled by the built in template for text nodes, which means, they are copied to the result tree Alternatively you could be selective in passing nodes to the templates <xsl:template match="/"> <xsl:apply-templates select="//section" /> </xsl:template> This way the whitespace only textnodes are not passed to the templates Altova has a weird way of dealing with white-space only text nodes (they listed it as a bug in their documentation some 4 years ago, apparently they still were not able to solve it) Cheers Geert
|
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
|