[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [XSLT 1.0] Q: recursively eliminate empty nodes
On 08/11/2010 18:22, Hermann Stamm-Wilbrandt wrote:
it depends if this is all the stylesheet is doing or if there are other templates processing other nodes. In the latter case you probably have to two two passes, with :node-set but if it really is an identity template plus strip empty nodes then really you are stripping any nodes with text node descendants so (assuming you use xsl:strip-space elements="*" to get rid of indentation you can just use <xsl:template match="*[not(.//text())]" /> or <xsl:template match="*[not(normalize-space())]" /> David
|
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
|