|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL and White Space help PLEASE
On Mon, 4 Jun 2001, David Carlisle wrote:
> > Which, alas, too many browers still in use are, following
> > HTML2
>
> but if you're writing HTML then you could use the html output method
> and most XSL engines will then output   as .
Ooh, that's interesting. The one I'm using (gnome's libxslt) doesn't, at
least not the version I'm using, but it sounds like a good idea. Do you
know which ones do this?
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:output method="html" encoding="iso-8859-1"/>
<xsl:template match="/">
[ ]
</xsl:template >
</xsl:stylesheet>
just tried 3, xt and saxon output as an entity reference, eg:
bash$ java com.icl.saxon.StyleSheet ~/nbsp.xsl ~/nbsp.xsl
[ ]
bash$
msxsl outputs it as utf8 character data (presumably because it chose not
to recognise latin-1.
Changing that to
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:output method="html" encoding="us-ascii"/>
<xsl:template match="/">
[ ]
</xsl:template >
</xsl:stylesheet>
then msxsl outputs as   (saxon outputs as and xt gives
UnsupportedEncodingException)
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
01285 884400.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








