evenisse    2002/11/08 07:41:02

  Modified:    src/plugins-build/pdf project2fo.xslt plugin.jelly
  Log:
  o Correct FO generation for non EN Locale
  o Add image to pdf
  
  Revision  Changes    Path
  1.4       +6 -0      jakarta-turbine-maven/src/plugins-build/pdf/project2fo.xslt
  
  Index: project2fo.xslt
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/pdf/project2fo.xslt,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- project2fo.xslt   5 Nov 2002 15:44:50 -0000       1.3
  +++ project2fo.xslt   8 Nov 2002 15:41:02 -0000       1.4
  @@ -263,6 +263,12 @@
   
   </xsl:template>
   
  +<xsl:template match="img[@src]">
  +    <fo:block>
  +        <fo:external-graphic src="{@src}"/>
  +    </fo:block>
  +</xsl:template>
  +
   <xsl:template match="table">
     <!-- FIXME: Do Nothing is not acceptable -->
   <!--
  
  
  
  1.5       +5 -2      jakarta-turbine-maven/src/plugins-build/pdf/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/pdf/plugin.jelly,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- plugin.jelly      5 Nov 2002 02:44:48 -0000       1.4
  +++ plugin.jelly      8 Nov 2002 15:41:02 -0000       1.5
  @@ -10,13 +10,15 @@
     <goal name="fo:fo" description="Generate XSL:FO project documentation">
   
       <mkdir dir="${maven.docs.dest}"/>
  -
  +    
  +    <echo>Generating ${maven.docs.dest}/project.fo ...</echo>
       <java classname="org.apache.xalan.xslt.Process" fork="yes">
         <classpath>
           <pathelement location="${plugin.getDependencyPath('xerces')}"/>
           <pathelement location="${plugin.getDependencyPath('xml-apis')}"/>
           <pathelement location="${plugin.getDependencyPath('xalan')}"/>
         </classpath>
  +      <sysproperty key="user.language" value="en"/>
         <arg value="-in"/>
         <!-- FIXME: Using ${maven.docs.src} here causes the build to fail because
                     xalan constructs the path relative to the current directory
  @@ -25,7 +27,7 @@
         <arg value="-out"/>
         <arg value="${maven.docs.dest}/project.fo"/>
         <arg value="-xsl"/>
  -      <arg value="file://${plugin.dir}/project2fo.xslt"/>
  +      <arg value="${plugin.dir}/project2fo.xslt"/>
         <arg value="-param"/>
         <arg value="basePath"/>
         <arg value="${maven.docs.src}"/>
  @@ -41,6 +43,7 @@
     <goal name="pdf:pdf" description="Generate PDF project documentation"
        prereqs="fo">
   
  +    <echo>Generating ${maven.docs.dest}/project.pdf ...</echo>
       <java classname="org.apache.fop.apps.Fop" fork="yes">
         <classpath>
           <pathelement location="${plugin.getDependencyPath('fop')}"/>
  
  
  

--
To unsubscribe, e-mail:   <mailto:turbine-maven-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-dev-help@;jakarta.apache.org>

Reply via email to