[thelist] xslt - removing whitespace

Paul Bennett paul at web-business-pack.com
Wed Oct 13 17:08:01 CDT 2004


ah, just tested, and that previous post fix DOES remove whitespace (man 
I love being right, even by accident... :) ), but only from the 
dynamically created xslt output, not from static parts of  your template

Andrew Martin wrote:

> I'm moving a database to XML and the one problem that I'm having is 
> whitespace between HTML tags when rendered via XSLT; I have something 
> like this:
> xslt file:
> </img></a>
>
> And the output adds a space between the end of the img tag and the a tag:
> html output:
> <img src="url">
>          </a>
>
> Is there a way to have the output of the xml not contain whitespace?
>
> Thanks!




More information about the thelist mailing list