cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Yates <ceya...@stanford.edu>
Subject Re: xsl output give a space after <img> element
Date Wed, 21 May 2003 23:09:34 GMT
I'm not sure but you may be dealing with the fact that the default 
'display' property of img elments is 'inline'.  This is what causes the 
line under the image.  If you change the display property to 'block' via 
a style sheet or a style="display:block" attribute it might go away.

Stavros Kounis wrote:

>hi people
>
>i get a strange space character after img element
>
>i use the follow xsl code
>
><xsl:template match="osm:div">
>	<div>
>		<xsl:apply-templates/>
>	</div>
></xsl:template>
>
><xsl:template match="osm:image">
>	<img>
>		<xsl:attributes>..</xsl:attributes>
>		......
>		<xsl:attributes>..</xsl:attributes>
>	</img>
></xsl:template>
>
>i dont know why but as result of this transformation i get an space
>(maybe, im not sure if its a space or something other)
>character after <img> that cause aligment and placement problems
>
>whe i try to transform:
>
><osm:div>
>	<osm:image attr1="" attr2="" ../>
></osm:div>
>
>i get
>
><div><img .....>!</div> where ! is a strange character im not sure if
its
>a space or not
>
>the problem is that  the height_of_div is greater
>than the image_height
>even when i define the same values for both so if div has a bg color then
>there is a color line (about 5 pixels) under the image
>
>i have try indent=no in xsl:output
>
>has anyone any idea
>
>
>thnx
>
>
>--stavros
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message