You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by j-...@chronopost.fr on 2003/07/24 17:39:21 UTC

Run FOP 0.20.5


Hello everyone,


After updating to the FOP 0.20.5, I get an error as follows:

[R:\] %JAVA_HOME%\bin\java.exe -classpath %LIB_CLASSPATH%
org.apache.fop.apps.Fop -d -xsl %INPUT_XSL%\editContrat.xsl -xml
%INPUT_XML%\editContrat.xml -pdf %OUTPUT%\editContrat.pdf

[DEBUG] Input mode:
[DEBUG] xslt transformation
[DEBUG] xml input file: R:\output\editContrat_fr_BE01.xml
[DEBUG] xslt stylesheet: R:\input\xsl_fo\editContrat.xsl
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: R:\output\editContrat_fr_BE01.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] base directory: file:/R:/doc_maker/output/
[ERROR] javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerExcept
ion: javax.xml.transform.TransformerException: xsl:import is not allowed in this
 position in the sty
lesheet!
org.apache.fop.apps.FOPException:
javax.xml.transform.TransformerConfigurationException: javax.xml.t
ransform.TransformerException: javax.xml.transform.TransformerException:
xsl:import is not allowed i
n this position in the stylesheet!
        at
org.apache.fop.apps.TraxInputHandler.initTransformer(TraxInputHandler.java:108)
        at org.apache.fop.apps.TraxInputHandler.<init>(TraxInputHandler.java:84)
        at org.apache.fop.apps.XSLTInputHandler.<init>(XSLTInputHandler.java:71)
        at
org.apache.fop.apps.CommandLineOptions.getInputHandler(CommandLineOptions.java:479)

        at
org.apache.fop.apps.CommandLineStarter.<init>(CommandLineStarter.java:78)
        at
org.apache.fop.apps.CommandLineOptions.getStarter(CommandLineOptions.java:522)
        at org.apache.fop.apps.Fop.main(Fop.java:61)

and my principal stylesheet (editContrat.xsl) imports other XSLT by using
xsl:import:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format">

  <xsl:import href="corps_ar.xsl"/>
  <xsl:import href="corps_std.xsl"/>
....

What?s wrong or what can I do?
Thanks in advance

______________________________________________
Jianxin KONG   ( j-kong@chronopost.fr )
CHRONOPOST INTERNATIONAL
Dir. systèmes d'information



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Run FOP 0.20.5

Posted by "J.Pietschmann" <j3...@yahoo.de>.
j-kong@chronopost.fr wrote:
> After updating to the FOP 0.20.5, I get an error as follows:
...
> ion: javax.xml.transform.TransformerException: xsl:import is not allowed in this
>  position in the stylesheet!

This indicates you have an xsl:include in an illegal position,
i.e. not as immediate child of xsl:stylesheet.
This is a problem with the transformation, not with FOP itself.
Run the transformation standalone to get a hopefully more
instructive error message, including the line where the
style sheet compiler detects the problem.

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Run FOP 0.20.5

Posted by ap...@free.fr.
Selon j-kong@chronopost.fr:

> 
> 
> Hello everyone,
> 
> 
> After updating to the FOP 0.20.5, I get an error as follows:
> 
> [R:\] %JAVA_HOME%\bin\java.exe -classpath %LIB_CLASSPATH%
> org.apache.fop.apps.Fop -d -xsl %INPUT_XSL%\editContrat.xsl -xml
> %INPUT_XML%\editContrat.xml -pdf %OUTPUT%\editContrat.pdf
> 
> [DEBUG] Input mode:
> [DEBUG] xslt transformation
> [DEBUG] xml input file: R:\output\editContrat_fr_BE01.xml
> [DEBUG] xslt stylesheet: R:\input\xsl_fo\editContrat.xsl
> [DEBUG] Output mode:
> [DEBUG] pdf
> [DEBUG] output file: R:\output\editContrat_fr_BE01.pdf
> [DEBUG] OPTIONS
> [DEBUG] no user configuration file is used [default]
> [DEBUG] debug mode on
> [DEBUG] dump configuration
> [DEBUG] quiet mode on
> [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [INFO] base directory: file:/R:/doc_maker/output/
> [ERROR] javax.xml.transform.TransformerConfigurationException:
> javax.xml.transform.TransformerExcept
> ion: javax.xml.transform.TransformerException: xsl:import is not allowed in
> this
>  position in the sty
> lesheet!
> org.apache.fop.apps.FOPException:
> javax.xml.transform.TransformerConfigurationException: javax.xml.t
> ransform.TransformerException: javax.xml.transform.TransformerException:
> xsl:import is not allowed i
> n this position in the stylesheet!
>         at
> org.apache.fop.apps.TraxInputHandler.initTransformer
(TraxInputHandler.java:108)
>         at
> org.apache.fop.apps.TraxInputHandler.<init>(TraxInputHandler.java:84)
>         at
> org.apache.fop.apps.XSLTInputHandler.<init>(XSLTInputHandler.java:71)
>         at
> org.apache.fop.apps.CommandLineOptions.getInputHandler
(CommandLineOptions.java:479)
> 
>         at
> org.apache.fop.apps.CommandLineStarter.<init>(CommandLineStarter.java:78)
>         at
> org.apache.fop.apps.CommandLineOptions.getStarter(CommandLineOptions.java:522)
>         at org.apache.fop.apps.Fop.main(Fop.java:61)
> 
> and my principal stylesheet (editContrat.xsl) imports other XSLT by using
> xsl:import:
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
>    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>     xmlns:fo="http://www.w3.org/1999/XSL/Format">
> 
>   <xsl:import href="corps_ar.xsl"/>
>   <xsl:import href="corps_std.xsl"/>
> ....
> 
> What?s wrong or what can I do?
> Thanks in advance


Try with 
    <xsl:include href="corps_ar.xsl"/>
    <xsl:include href="corps_std.xsl"/>
Antoine POURCHEZ


> 
> ______________________________________________
> Jianxin KONG   ( j-kong@chronopost.fr )
> CHRONOPOST INTERNATIONAL
> Dir. systèmes d'information
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org