Subject: Re: [xsl] saxon xmlspy discrepancy in whitespace handling From: Geert Bormans <geert@xxxxxxxxxxxxxxxxxxx> Date: Wed, 17 Jan 2007 11:02:52 +0100 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] saxon xmlspy discrepancy in w, Erwin Kloeck | Thread | Re: [xsl] saxon xmlspy discrepancy , George Cristian Bina |
[xsl] saxon xmlspy discrepancy in w, Erwin Kloeck | Date | Re: [xsl] saxon xmlspy discrepancy , George Cristian Bina |
Month |