Bonjour
actuellement je cherche à effectuer dans mon application java, une transformation d'un fichier xml ( au format docbook ) à un document RTF.
j'utilise l'ensemble des xsl de docbook récupéré sur le site officiel.
j'ai le message d'erreur suivant:
pour infos ma fonction de transformation est la suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 Avertissements de compilation : file:///E:/workspace/workspace-root/Ecitiz/source/com.ecitiz.exportspec/xsl/fo/formal.xsl: line 202: L'attribut 'border-left-style' est à l'extérieur de l'élément. file:///E:/workspace/workspace-root/Ecitiz/source/com.ecitiz.exportspec/xsl/fo/formal.xsl: line 203: L'attribut 'border-right-style' est à l'extérieur de l'élément. file:///E:/workspace/workspace-root/Ecitiz/source/com.ecitiz.exportspec/xsl/fo/formal.xsl: line 204: L'attribut 'border-top-style' est à l'extérieur de l'élément. file:///E:/workspace/workspace-root/Ecitiz/source/com.ecitiz.exportspec/xsl/fo/formal.xsl: line 205: L'attribut 'border-bottom-style' est à l'extérieur de l'élément. ERREUR : 'Le premier argument de la fonction Java non static 'insertCallouts' n'est pas une référence d'objet valide.' ERREUR BLOQUANTE : 'Impossible de compiler la feuille de style'
est ce quelqu'un pourrait m'aider ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 public void transformToDocument(String xmlJaxb) throws FileNotFoundException, TransformerException { // 1. Instantiate a TransformerFactory. javax.xml.transform.TransformerFactory tFactory = javax.xml.transform.TransformerFactory.newInstance(); // 2. Use the TransformerFactory to process the stylesheet Source and // generate a Transformer. javax.xml.transform.Transformer transformer = tFactory.newTransformer (new javax.xml.transform.stream.StreamSource("xsl/fo/docbook.xsl")); // 3. Use the Transformer to transform an XML Source and send the // output to a Result object. transformer.transform (new javax.xml.transform.stream.StreamSource("test/out/test_exist.xml"), new javax.xml.transform.stream.StreamResult( new java.io.FileOutputStream("test/out/test_exist.RTF"))); } }
d'avance merci
Partager