On Jan 10, 2006, at 17:26, Erik Mazoyer wrote:
>> Ce qui compte c'est l'encodage dans lequel ils vont
>> sortir. Ce que tu précise ci-dessus se limite donc à:
>>
>> <xsl:output encoding="ISO-8859-1"/>
>
> Non, car si j'ai un caratère chinois, j'aimerais qu'il soit écrit.
> Si je précise que mon encoding est en ISO Latin 1, j'ai un écchec à
> l'écriture.
C'est une limitation de ton processeur XSLT. Ce comportement est
toléré par la spécification XSLT (produire une entité est seulement
un "should") mais certainement pas requis. Si ma mémoire ne me fait
pas trop défaut, libxslt produira une entité pour le cas que tu cites.
"""
It is possible that the result tree will contain a character that
cannot be represented in the encoding that the XSLT processor is
using for output. In this case, if the character occurs in a context
where XML recognizes character references (i.e. in the value of an
attribute node or text node), then the character should be output as
a character reference; otherwise (for example if the character occurs
in the name of an element) the XSLT processor should signal an error.
"""
-- http://www.w3.org/TR/xslt#section-XML-Output-Method
--
Robin Berjon
Senior Research Scientist
Expway, http://expway.com/
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Received on Tue Jan 10 18:03:53 2006