Re: [xsl] HTML <img> </img> causing whitespace

Subject: Re: [xsl] HTML <img> </img> causing whitespace
From: Jörg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 5 Dec 2001 22:10:43 +0100
Hi Steve,

the snippet is a bit to little ;-) Please give a more or the complete
stylesheet.

Where do you get the whitespace? In the HTML-output or in the browser? And I
don't understand what's the problem with a whitespace before a linebreak.
But one hint I can give you: If you have the whitespace only in the browser
and the stylesheet ist set to indenting (<xsl:output indent="yes">) the
HTML-code has a linebreak between </a> and </br>.

And you can shorten your code by using attribute value templates:

<a href="{mdul_code}">
    <img width="122" height="22" border="0" name="/nam_{mdul_code}"
src="/sid_{mdul_code}.gif" alt="{mdul_label}"/>
</a><br/>

Regards,

Joerg


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread