This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: HTML <img> </img> causing whitespace


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]