Dear,
 
I'd like to use xsl constant definition into a fop code... here a piece...
 
<xsl:stylesheet
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
     xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
<!-- constant -->
<xsl:define-constant name="images-dir" value="c:/idea-2_6/fop/images"/>
 
<xsl:template match="/">
 
 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
  <fo:layout-master-set>
   <fo:simple-page-master master-name="first"
    page-height="29.7cm"
    page-width="24cm"
    margin-top="0.5cm"
    margin-bottom="0.5cm"
    margin-left="1cm"
    margin-right="1cm">
    
    <fo:region-body margin-top="2.5cm"/>
    <fo:region-before extent="4cm"/>
    <fo:region-after extent="5.5cm"/>
   </fo:simple-page-master
 
the compiler response was:
FOP exception org.apache.fop.apps.FOPException: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: xsl:define-constant is not allowed in this position in the stylesheet!
 
could someone help me?
 
thanks in advance
 
joannes

Reply via email to