🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #8876

Re: gérer le codage de sortie de xsl

#8876
From: Jean-Francois BILLAUD
Date: Fri, 10 Aug 2001 13:51
56 lines
2954 bytes
Vincent Leconte wrote:
 
> j'ai un fichier xml cod� en iso-8859-1 en entr�e.
> apr�s l'avoir transform� avec mon fichier xsl j'obtiens un 
> fichier texte cod� en UTF8
> hors je veux pas de l'UTF8 en sortie mais du iso-8859-1
> 
> je ne sais pas � quel niveau on peut controller �a pendant 
> le processing XSL.

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" indent="no" encoding="iso-8859-1"/>
...

> et si jamais vous savez comment passer de UTF8 � iso-8859-1 � 
> la main �a m'interesse aussi...

Vu dans xerces-C (http://xml.apache.org) :

/xml-xerces/c/bin$ ./DOMPrint -?

Usage: DOMPrint [options] file

This program invokes the Xerces-C DOM parser and builds the DOM
tree. It then traverses the DOM tree and prints the contents 
of the tree. Options are NOT case sensitive.

Options:
    -e          create entity reference nodes. Default is no expansion.
    -u=xxx      Handle unrepresentable chars [fail | rep | ref*]
    -v=xxx      Validation scheme [always | never | auto*]
    -n          Enable namespace processing. Default is off.
    -x=XXX      Use a particular encoding for output. Default is
                the same encoding as the input XML file. UTF-8 if
                input XML file has not XML declaration.
    -?          Show this help (must be the only parameter)

  * = Default if not provided explicitly

The parser has intrinsic support for the following encodings:
    UTF-8, USASCII, ISO8859-1, UTF-16[BL]E, UCS-4[BL]E,
    WINDOWS-1252, IBM1140, IBM037

Par exemple :

DOMPrint x=ISO8859-1 titi.xml > toto.xml 


JF
-- 
apt-get - Version 0.3.19 - Filesize 486958 bytes - Downloaded 25 times -
Slackware version 8.0 - apt-get ported to slackware. Now debian users 
can use slackware and see how much better slackware is.
  -- http://www.linuxmafia.org/pcentral/  --
Technical Details
Message-ID: <3B73E6D3.78B6B5D0@interpc.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!freenix!news.pcl.fr!not-for-mail
References: <9l0nmk$kp6$1@s1.read.news.oleane.net>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,3dab5a41bc0e9b40
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-08-10 06:51:16 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!freenix!news.pcl.fr!not-for-mail
From: Jean-Francois BILLAUD <billaud@interpc.fr>
Newsgroups: fr.comp.text.xml
Subject: Re: gérer le codage de sortie de xsl
Date: Fri, 10 Aug 2001 15:51:15 +0200
Organization: Neddamon delgu linda
Lines: 56
Message-ID: <3B73E6D3.78B6B5D0@interpc.fr>
References: <9l0nmk$kp6$1@s1.read.news.oleane.net>
NNTP-Posting-Host: interpc46.interpc.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.pcl.fr 997451906 464 194.51.251.46 (10 Aug 2001 13:58:26 GMT)
X-Complaints-To: usenet@news.pcl.fr
NNTP-Posting-Date: 10 Aug 2001 13:58:26 GMT
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i686)
X-Accept-Language: fr-FR