You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Bennett <be...@glengroup.com> on 2002/07/23 22:31:06 UTC

xslt output - word wrapping

Hello,

	Does anyone know how to get a text node from an xml source to wrap 
in netscape 6.2?

	For example,
	
	In the source xml file, I have a very long block of text that I 
want to keep to 240 pixels using css like so:

			<textblock style="width:240;">
				very long text block here....	
			</textblock >

	Yet, Netscape 6.2 isn't wrapping the text. It only wraps at the 
edge of the window instead of at 240 pixels.


	In my xslt template I have:

<xsl:template match="textblock">
	<xsl:element name="div">
		<xsl:if test="@class"><xsl:attribute 
name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if>
		<xsl:if test="@style"><xsl:attribute 
name="style"><xsl:value-of select="@style"/></xsl:attribute></xsl:if>
		<xsl:apply-templates/>
	</xsl:element>
</xsl:template>


Does anyone know how I can do solve this?

TIA,
Bennett