You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Mike Dierken <mi...@DataChannel.com> on 2000/05/19 20:18:17 UTC
RE: how do I do an equivalent of
in my XSL file?
If the output is <BR /> (with a space) many browsers will recognize that.
I don't know how to get Xalan to generate this format of an empty element.
Alternatively, you can use a Cruel XML Trick - use an entity.
<!DOCTYPE foo [
<!ENTITY tagStart "<![CDATA[<]]>" >
<!ENTITY tagEnd "<![CDATA[>]]>" >
]>
<xsl:stylesheet>
&tagStart;BR &tagEnd;
</xsl:stylesheet>
Mike D
> -----Original Message-----
> From: Chris Gokey [mailto:cgokey@hydrogen.stx.com]
> Sent: Friday, May 19, 2000 11:26 AM
> To: xalan-dev@xml.apache.org
> Subject: how do I do an equivalent of <BR> in my XSL file?
>
>
> Hi everyone,
>
> I'm trying to format a XML document using Apache's Xalan and
> my XSL file
> needs a equivalent of HTML's <BR>. Since <BR> is not
> well-formed, it won't
> work. I tried <BR/> but the browser seems to be ignoring that.
>
> Also, when Xalan preprocesses the XSL and creates the HTML,
> it does not put any
> new line characters in the output. This makes it very
> difficult to read.
>
> Any suggestions?
> Chris
> --
> Christopher D. Gokey, Raytheon ITSS, NASA/GCMD
> 18 Martin Road, Shelburne Falls, MA 01370
> Phone: Voice (413) 625-8129 / FAX 208-248-9055
> cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov
>