RE: Saxon html includes unwanted white space in anchor tag

Subject: RE: Saxon html includes unwanted white space in anchor tag
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 20 Jan 2000 09:41:48 -0000
Try <xsl:output method="html" indent="no"/>

Mike Kay

> -----Original Message-----
> From: Mike Alsup [mailto:mike_alsup@xxxxxxx]
> Sent: 19 January 2000 15:12
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Saxon html includes unwanted white space in anchor tag
> 
> 
> I'm having trouble when trying to use an html image tag 
> inside an anchor tag
> using the following stylesheet:
> 
> ----------------------------
> <xsl:stylesheet
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
>     xmlns:saxon="http://icl.com/saxon";
>     extension-element-prefixes="saxon">
> 
> <xsl:output method="html"/>
> <xsl:strip-space elements="*"/>
> 
> <xsl:template match="/">
>     <html><body>
> 
>     <a href="#"><img border="0" src="image.jpg"/></a>
> 
>     test text
>     </body></html>
> </xsl:template>
> </xsl:stylesheet>
> ----------------------------
> 
> The saxon v5.1 processor ( when run via the StyleSheet class 
> on the command
> line ) generates the following HTML:
> 
> ----------------------------
> <html>
>     <body>
>         <a href="#">
>             <img src="image.jpg" border="0">
>         </a>
> 
>     test text
>     </body>
> </html>
> ----------------------------
> 
> The trouble here is that there is white space after the image 
> tag but within
> the anchor tag and when rendered this appears as part of the 
> hyperlink (ie,
> the link extends beyond the image).  The Lotusxsl processor (v0.19.1)
> produces the following HTML which works fine as there is no 
> unwanted white
> space in the anchor:
> 
> ----------------------------
> <html>
> <body>
> <a href="#"><img src="image.jpg" border="0"></a>
> 
>     test text
>     </body>
> </html>
> ----------------------------
> 
> Can anyone give me some guidance as to how to make this work 
> right using the
> Saxon processor?
> 
> Thanks!
> 
> Michael
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Current Thread