Hi there !

Suppose I want to generate a <BR> tag from an XSL document, in order to
make line breaks in my HTML document.

<BR> is not allowed, because the closing tag is missing. So I tried
<BR/>, but in that case, the HTLM document generated contains also a
<BR/> tag, which is not understood by Netscape browser (not HTML 4.0
compliant I guess).

Is that a bug or what ? The only solution I found is to force Xalan to
generate a <BR> tag by using xsl:text tag, as follow :

<xsl:text disable-output-escaping="yes">&lt;BR&gt;</xsl:text>

but even if that works, it is not "nice".

Thanks for replying.


Part of my XSL document :
...
<xsl:value-of select="Address"/><br/>
<xsl:value-of select="PostalCode"/><b><xsl:text> </xsl:text>
<xsl:value-of select="Town"/><br/></b>
...
<xsl:template match="LINE">
   <xsl:value-of select="."/>
   <br/>
</xsl:template>

Part of my XML document
...
<Address>
  <LINE>24 ruelle des ames perdues</LINE>
</Address>
<PostalCode>92310</PostalCode>
<Town>S�vres</Town>
...

-- 
David

Reply via email to