You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by POUPON Olivier <ol...@sofrecom.fr> on 2000/09/12 15:59:28 UTC
use compile stylesheet
Hello
I am working on win32 with jdk sun 1.1.8 and xalan1.2.D02 and xerces1.1.3
I can not use compile stylesheet with xalan for example if I use:
java org.apache.xalan.xslt.Process -in d:\essai\factures.xml -xsl
d:\essai\mep.xsl -out d:\essai\fich.txt -TT -TS -TG -TTC
It work perfect !
But with this :
java org.apache.xalan.xslt.Process -in d:\essai\factures.xml -xsl
d:\essai\mep.xsl -lxcout d:\essai\essai.style -TT -TS -TG -TTC -EDUMP
I have it :
========= Parsing file:d:/essai/mep.xsl ==========
Parse of file:d:/essai/mep.xsl took 410 milliseconds
========= Parsing file:d:/essai/factures.xml ==========
Parse of file:d:/essai/factures.xml took 531 milliseconds
=============================
Transforming...
STARTDOCUMENT
Line #0, Column #0: xsl:template match='/'
Line #0, Column #0: xsl:apply-templates
Line #0, Column #0: xsl:template match='*'
Line #0, Column #0: xsl:apply-templates
Line #16, Column #32: xsl:template match='generale'
Line #19, Column #32: xsl:template match='factures'
Line #20, Column #24: xsl:apply-templates
Line #23, Column #31: xsl:template match='facture'
Line #24, Column #26 -- #text: numero de lot:
STARTDOCUMENT
numero de lot:CHARACTERS: numero de lot:
Line #26, Column #22 -- #text: montant
montant CHARACTERS: montant
Line #27, Column #34: xsl:value-of
Line #27, Column #34: xsl:value-of, select='montant':
org.apache.xalan.xpath.dtm.DTMProxy@1a0c7c
12345CHARACTERS: 12345
Line #28, Column #13 -- #text:
CHARACTERS:
Line #29, Column #33: xsl:value-of
Line #29, Column #33: xsl:value-of, select='devise':
org.apache.xalan.xpath.dtm.DTMProxy@29ae05
FRFCHARACTERS: FRF
Line #31, Column #1 -- #text:
CHARACTERS:
Line #23, Column #31: xsl:template match='facture'
Line #24, Column #26 -- #text: numero de lot:
numero de lot:CHARACTERS: numero de lot:
Line #26, Column #22 -- #text: montant
montant CHARACTERS: montant
Line #27, Column #34: xsl:value-of
Line #27, Column #34: xsl:value-of, select='montant':
org.apache.xalan.xpath.dtm.DTMProxy@5ff3a2
733CHARACTERS: 733
Line #28, Column #13 -- #text:
CHARACTERS:
Line #29, Column #33: xsl:value-of
Line #29, Column #33: xsl:value-of, select='devise':
org.apache.xalan.xpath.dtm.DTMProxy@742b49
FRFCHARACTERS: FRF
Line #31, Column #1 -- #text:
CHARACTERS:
Line #20, Column #24: xsl:apply-templates, select='node()':
[empty node list]
(default rule) xsl:apply-templates, select='node()':
[empty node list]
(default root rule) xsl:apply-templates, select='node()':
[empty node list]
ENDDOCUMENT
transform took 40 milliseconds
java.io.NotSerializableException: org.apache.xalan.xpath.xml.StringToStringTable
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
at
org.apache.xalan.xslt.ElemTemplateElement.writeObject(ElemTemplateElement.java:254)
at java.lang.reflect.Method.invoke(Native Method)
at
java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java:1878)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1210)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
at org.apache.xalan.xslt.Stylesheet.writeObject(Stylesheet.java:531)
at java.lang.reflect.Method.invoke(Native Method)
at
java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java:1878)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1210)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at org.apache.xalan.xslt.Process.main(Process.java:605)
Xalan: was not successful.
XSLProcessor: done
Thanks.