Article View: fr.comp.text.xml
Article #10090Quelle est la diff�rence entre xalan et xalan ?
From: Rapha�l THERY
Date: Tue, 19 Dec 2000 07:30
Date: Tue, 19 Dec 2000 07:30
32 lines
2150 bytes
2150 bytes
Une chose m'�chappe !
Lorsqu'en ligne de commande je fais
java org.apache.xalan.xslt.Process -IN XXXX.xml -XSL YYYY.xsl -OUT
ZZZZ.xml -XML
le process me traduit bien ma feuille xml XXXX en ZZZZ suivant les r�gles de
tranformation dict�es dans la feuille de Style YYYY
lorsque je fais une classe sur le mod�le "SimpleTransform" pour effectuer la
m�me chose ... je n'ai pas la m�me chose ?
il ne me sort que les noeuds text
public class SimpleTransform
{
public static void main(String[] args)
throws java.io.IOException,
java.net.MalformedURLException,
org.xml.sax.SAXException
{
// Have the XSLTProcessorFactory obtain a interface to a
// new XSLTProcessor object.
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
// Have the XSLTProcessor processor object transform "birds.xml" to
// System.out, using the XSLT instructions found in "birds.xsl".
processor.process(new XSLTInputSource(args[0]),
new XSLTInputSource(args[1]),
new XSLTResultTarget(args[0] + ".out"));
System.out.println("************* The result is in birds.out
*************");
}
}
Technical Details
Message-ID:
<i8E%5.828$RO5.2806855@nnrp2.proxad.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,79b5b78913373cce,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2000-12-18 23:32:03 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mail From: "Rapha�l THERY" <raphael.thery@nordnet.fr> Newsgroups: fr.comp.text.xml Subject: Quelle est la diff�rence entre xalan et xalan ? Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: <i8E%5.828$RO5.2806855@nnrp2.proxad.net> Date: Tue, 19 Dec 2000 07:30:22 GMT NNTP-Posting-Host: 195.115.154.77 X-Complaints-To: abuse@proxad.net X-Trace: nnrp2.proxad.net 977211022 195.115.154.77 (Tue, 19 Dec 2000 08:30:22 CET) NNTP-Posting-Date: Tue, 19 Dec 2000 08:30:22 CET Organization: Guest of ProXad - France