Re: Caractères spéciaux RTF Saxon
Eric van der Vlist <[email protected]>
| Newsgroups | gmane.text.xml.french.tech |
|---|---|
| Organization | Dyomedea (http://dyomedea.com) |
| Message-ID | <[email protected]> |
Bonjour,
Le vendredi 10 février 2006 à 14:18 +0000, Matthieu Vanassche a écrit :
> J'ai un fichier xml avec des caractères spéciaux français (éèàùê...),
> Quand je lance une transformation html(via cocoon et un xsl), aucun
> problème,les caractères spéciaux fonctionnent très bien.
>
>
> Par contre, quand je lance une transformation rtf via saxon, tout ces
> caractères font des sigles bizarres...
> Comment faire pour que ces caractères reste pareil en rtf?
> Est-ce un problème d'encodage?
Oui. Par défaut, XSLT va générer un document encodé en UTF-8. Si
l'environnement dans lequel vous le lisez attend un encodage ISO-8859-1,
les caractères non ascii ne s'afficheront pas correctement.
> Y a t'il quelque chose a rajouter dans le xsl:value-of?
>
Non, pas dans xsl:value-of...
>
> Voici l'entete du fichier xml:
> <?xml version="1.0" encoding="UTF-16" standalone="no"?>
> <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance[1]"
> xsi:noNamespaceSchemaLocation="C:\travaux\Admin Fujitsu\Gestion CVS\cv new
> version.xsd">
>
>
>
> Voci l'entete du fichier xsl de transformation rtf:
> <?xml version='1.0'?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform[2]"
> xmlns:msxsl="urn:schemas-microsoft-com:xslt"
> xmlns:fn="http://www.yourwebsite.com/rtf[3]">
>
> <xsl:output version="1.0" method="text" />
mais dans xsl:output:
<xsl:output method="text" encoding="iso-8859-1"/>
Cordialement,
Eric van der Vlist
--
GPG-PGP: 2A528005
Curious about Relax NG? Read my book online.
http://books.xmlschemata.org/relaxng/
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
-- Attached file included as plaintext by Ecartis --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQBD7PStDvn+ZCpSgAURAo/rAJ4ra+g8WdwTd+0lii3e0Ra5Kt8wkwCfTnAR
FZTPnBkXLLGU+VP2rClIs4Q=
=500U
-----END PGP SIGNATURE-----