Subject: Re: [xsl] XSL special chars output prob. From: CAO Tuan Dung <Tuan-Dung.Cao@xxxxxxxxxxxxxxx> Date: Tue, 11 Jun 2002 13:21:34 +0200 |
hello julian, thanks for you answer. when using extension functions, wouldn't it be the same problem?
At 11:11 11.06.2002 +0200, you wrote:
This is by design.
XML doesn't allow any control characters except TAB, NL and LF, and therefore, you can't produce them with plain XSLT.
>
> the goal is to transform a given xml document (not shown here) to a file,
> that has a strange header with special characters. if i view an example
> output file with a hex editor, i see 7F 0D 0A 17 00 04 01 etc.
>
> well, why not use &#x<here the two digits> in my xsl stylesheet i
> thought.
> this works well for the most characters, i.e. line feed (0A). the problem
> arises when trying to output �,  etc.
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
>
> <xsl:output method="text" encoding="ISO-8859-1"/>
> <xsl:template match="/">
> 1 @
> 2 &
> 3 

> 4 
> <!-- 5 �
> 6 
> 7 
> 7 
> -->
> </xsl:template>
> </xsl:stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL special chars output , David Carlisle | Thread | Re: [xsl] XSL special chars output , David Carlisle |
Re: [xsl] Selective output of half , Peter Davis | Date | Re: [xsl] XSL special chars output , David Carlisle |
Month |