xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorbjørn Ravn Andersen <thunderax...@hotmail.com>
Subject RE: XML to PDF on AIX
Date Thu, 11 Oct 2012 08:44:42 GMT
If you run Java 1.4 and want to run code compiled for Java 5 you should
first see if you can get a Java 5 or 6 installed on the machine next to the
1.4.  To my understanding they can be downloaded directly from the IBM
homepage.

If you cannot do that you may use retroweaver to process your Java 5
libraries into a Java 1.4 compliant version.  I've used it some but it is a
magic box, and it may be brittle but it should get you going.

See http://stackoverflow.com/q/176870/53897,
http://stackoverflow.com/q/603828/53897,
http://stackoverflow.com/q/958366/53897 for various suggestions and opinions
over time.  

I'd like to hear how you eventually resolve this.

/Thorbjørn



-----Original Message-----
From: nels [mailto:nbhchan@gmail.com] 
Sent: 10. oktober 2012 10:38
To: fop-users@xmlgraphics.apache.org
Subject: Re: XML to PDF on AIX

I am running JRE 1.4.2.
I'm not using svg and not running Xserver.

Here is my sanitised xml:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="fl_GOOFIENSWE1694418P45208.xsl" ?>
<report> <report_info> <page_count>00000005</page_count>
<printed>N</printed> <title>Freight Label</title>
<form_type>frt_lbl</form_type> <length>0</length> <width>80</width>
<real_length>0060</real_length> <real_width>0080</real_width>
<data_dir>/live/data/rand</data_dir>
<style_sheet_type>full</style_sheet_type>
</report_info>
<detail tag="0">
<page_header tag="1">
<del_state>NSW</del_state>
</page_header>
<connote tag="2">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="3">
<del_name>To: WOW PROSPECT - FROZEN</del_name> </deliveryname> <deliveryaddr
tag="4">
<del_addr1>C/- AMERICOLD PROSPECT</del_addr1>
<del_addr2>PROSPECT</del_addr2> <del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4> </deliveryaddr> <recref tag="5">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="6">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="7">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="8">
<sen_addr1>SENDER1</sen_addr1> <sen_addr2>SENDER2</sen_addr2>
<sen_addr3>NSW</sen_addr3> <sen_addr4>23XX</sen_addr4> </pickupaddr>
<custref tag="9"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="10"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="11">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="12">
<plt_count>1 of 14</plt_count>
</pltcount>
<page_header tag="13">
<del_state>NSW</del_state>
</page_header>
<connote tag="14">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="15">
<del_name>To: WOW PROSPECT - FROZEN</del_name> </deliveryname> <deliveryaddr
tag="16"> <del_addr1>ADDRESS1</del_addr1> <del_addr2>ADDRESS2</del_addr2>
<del_addr3>NSW</del_addr3> <del_addr4>2148</del_addr4> </deliveryaddr>
<recref tag="17"> <rec_ref>Receiver's Ref: S92588900</rec_ref> </recref>
<duedate tag="18"> <due_dat>Due Date: 10-OCT-2012</due_dat> </duedate>
<pickupname tag="19"> <sen_name>SENDER NAME</sen_name> </pickupname>
<pickupaddr tag="20"> <sen_addr1>SENDER1</sen_addr1>
<sen_addr2>SENDER2</sen_addr2> <sen_addr3>NSW</sen_addr3>
<sen_addr4>23XX</sen_addr4> </pickupaddr> <custref tag="21"> <cust_ref>Cust
Ref: 1000174788</cust_ref> </custref> <barcode tag="22">
<barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="23">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="24">
<plt_count>2 of 14</plt_count>
</pltcount>
<page_header tag="25">
<del_state>NSW</del_state>
</page_header>
<connote tag="26">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="27">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
<deliveryaddr tag="28">
<del_addr1>ADDRESS1</del_addr1>
<del_addr2>ADDRESS2</del_addr2>
<del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4>
</deliveryaddr>
<recref tag="29">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="30">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="31">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="32">
<sen_addr1>SENDER1</sen_addr1> <sen_addr2>SENDER2</sen_addr2>
<sen_addr3>NSW</sen_addr3> <sen_addr4>23XX</sen_addr4> </pickupaddr>
<custref tag="33"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="34"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="35">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="36">
<plt_count>3 of 14</plt_count>
</pltcount>
<page_header tag="37">
<del_state>NSW</del_state>
</page_header>
<connote tag="38">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="39">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
</detail>
<soft_page/>
<detail tag="40">
<deliveryaddr tag="41">
<del_addr1>ADDRESS1</del_addr1>
<del_addr2>ADDRESS2</del_addr2>
<del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4>
</deliveryaddr>
<recref tag="42">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="43">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="44">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="45">
<sen_addr1>ADDRESS1</sen_addr1> <sen_addr2>ADDRESS2</sen_addr2>
<sen_addr3>NSW</sen_addr3> <sen_addr4>23XX</sen_addr4> </pickupaddr>
<custref tag="46"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="47"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="48">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="49">
<plt_count>4 of 14</plt_count>
</pltcount>
<page_header tag="50">
<del_state>NSW</del_state>
</page_header>
<connote tag="51">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="52">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
<deliveryaddr tag="53">
<del_addr1>DELIVERY1</del_addr1>
<del_addr2>DELIVERY2</del_addr2>
<del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4>
</deliveryaddr>
<recref tag="54">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="55">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="56">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="57">
<sen_addr1>SENDER1</sen_addr1> <sen_addr2>SENDER2</sen_addr2>
<sen_addr3>NSW</sen_addr3> <sen_addr4>23XX</sen_addr4> </pickupaddr>
<custref tag="58"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="59"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="60">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="61">
<plt_count>5 of 14</plt_count>
</pltcount>
<page_header tag="62">
<del_state>NSW</del_state>
</page_header>
<connote tag="63">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="64">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
<deliveryaddr tag="65">
<del_addr1>DELIVERY1</del_addr1>
<del_addr2>DELIVERY2</del_addr2>
<del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4>
</deliveryaddr>
<recref tag="66">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="67">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="68">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="69">
<sen_addr1>SENDER1</sen_addr1> <sen_addr2>SENDER2</sen_addr2>
<sen_addr3>NSW</sen_addr3> <sen_addr4>23XX</sen_addr4> </pickupaddr>
<custref tag="70"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="71"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="72">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="73">
<plt_count>6 of 14</plt_count>
</pltcount>
<page_header tag="74">
<del_state>NSW</del_state>
</page_header>
<connote tag="75">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="76">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
<deliveryaddr tag="77">
<del_addr1>DELIVERY1</del_addr1>
<del_addr2>DELIVERY2</del_addr2>
<del_addr3>NSW</del_addr3>
</deliveryaddr>
</detail>
<soft_page/>
<detail tag="78">
<deliveryaddr tag="79">
<del_addr4_1>2148</del_addr4_1>
</deliveryaddr>
<recref tag="80">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="81">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="82">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="83">
<sen_addr1>SENDER1</sen_addr1> <sen_addr2>SENDER2</sen_addr2>
<sen_addr3>NSW</sen_addr3> <sen_addr4>23XX</sen_addr4> </pickupaddr>
<custref tag="84"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="85"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="86">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="87">
<plt_count>7 of 14</plt_count>
</pltcount>
<page_header tag="88">
<del_state>NSW</del_state>
</page_header>
<connote tag="89">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="90">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
<deliveryaddr tag="91">
<del_addr1>DELIVERY1</del_addr1>
<del_addr2>DELIVERY2</del_addr2>
<del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4>
</deliveryaddr>
<recref tag="92">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="93">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="94">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="95">
<sen_addr1>SENDER1</sen_addr1> <sen_addr2>SENDER2</sen_addr2>
<sen_addr3>NSW</sen_addr3> <sen_addr4>23XX</sen_addr4> </pickupaddr>
<custref tag="96"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="97"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="98">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="99">
<plt_count>8 of 14</plt_count>
</pltcount>
<page_header tag="100">
<del_state>NSW</del_state>
</page_header>
<connote tag="101">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="102">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
<deliveryaddr tag="103">
<del_addr1>DELIVERY1</del_addr1>
<del_addr2>DELIVERY2</del_addr2>
<del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4>
</deliveryaddr>
<recref tag="104">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="105">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="106">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="107">
<sen_addr1>SENDER1</sen_addr1> <sen_addr2>SENDER2</sen_addr2>
<sen_addr3>NSW</sen_addr3> <sen_addr4>23XX</sen_addr4> </pickupaddr>
<custref tag="108"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="109"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="110">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="111">
<plt_count>9 of 14</plt_count>
</pltcount>
<page_header tag="112">
<del_state>NSW</del_state>
</page_header>
<connote tag="113">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="114">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
<deliveryaddr tag="115">
<del_addr1>ADDRESS1</del_addr1>
<del_addr2>ADDRESS2</del_addr2>
<del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4>
</deliveryaddr>
<recref tag="116">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="117">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> </detail> <soft_page/>
<detail tag="118"> <pickupname tag="119"> <sen_name>SENDER NAME</sen_name>
</pickupname> <pickupaddr tag="120"> <sen_addr1>SENDER1</sen_addr1>
<sen_addr2>SENDER2</sen_addr2> <sen_addr3>NSW</sen_addr3>
<sen_addr4>23XX</sen_addr4> </pickupaddr> <custref tag="121"> <cust_ref>Cust
Ref: 1000174788</cust_ref> </custref> <barcode tag="122">
<barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="123">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="124">
<plt_count>10 of 14</plt_count>
</pltcount>
<page_header tag="125">
<del_state>NSW</del_state>
</page_header>
<connote tag="126">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="127">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
<deliveryaddr tag="128">
<del_addr1>DELIVERY1</del_addr1>
<del_addr2>DELIVERY2</del_addr2>
<del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4>
</deliveryaddr>
<recref tag="129">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="130">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="131">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="132">
<sen_addr1>SENDER1</sen_addr1> <sen_addr2>SENDER2</sen_addr2>
<sen_addr3>NSW</sen_addr3> <sen_addr4>23XX</sen_addr4> </pickupaddr>
<custref tag="133"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="134"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="135">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="136">
<plt_count>11 of 14</plt_count>
</pltcount>
<page_header tag="137">
<del_state>NSW</del_state>
</page_header>
<connote tag="138">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="139">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
<deliveryaddr tag="140">
<del_addr1>DELIVERY1</del_addr1>
<del_addr2>DELIVERY2</del_addr2>
<del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4>
</deliveryaddr>
<recref tag="141">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="142">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="143">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="144">
<sen_addr1>SENDER1</sen_addr1> <sen_addr2>SENDER2</sen_addr2>
<sen_addr3>NSW</sen_addr3> <sen_addr4>23XX</sen_addr4> </pickupaddr>
<custref tag="145"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="146"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="147">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="148">
<plt_count>12 of 14</plt_count>
</pltcount>
<page_header tag="149">
<del_state>NSW</del_state>
</page_header>
<connote tag="150">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="151">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
<deliveryaddr tag="152">
<del_addr1>DELIVERY1</del_addr1>
<del_addr2>DELIVERY2</del_addr2>
<del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4>
</deliveryaddr>
<recref tag="153">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="154">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="155">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="156">
<sen_addr1>SENDER1</sen_addr1> <sen_addr2>SENDER2</sen_addr2> </pickupaddr>
</detail> <soft_page/> <detail tag="157"> <pickupaddr tag="158">
<sen_addr3_1>NSW</sen_addr3_1> <sen_addr4_1>23XX</sen_addr4_1> </pickupaddr>
<custref tag="159"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="160"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="161">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="162">
<plt_count>13 of 14</plt_count>
</pltcount>
<page_header tag="163">
<del_state>NSW</del_state>
</page_header>
<connote tag="164">
<con_nbr>CN: 1694418P</con_nbr>
</connote>
<deliveryname tag="165">
<del_name>DELIVERY NAME</del_name>
</deliveryname>
<deliveryaddr tag="166">
<del_addr1>DELIVERY1</del_addr1>
<del_addr2>DELIVERY2</del_addr2>
<del_addr3>NSW</del_addr3>
<del_addr4>2148</del_addr4>
</deliveryaddr>
<recref tag="167">
<rec_ref>Receiver's Ref: S92588900</rec_ref> </recref> <duedate tag="168">
<due_dat>Due Date: 10-OCT-2012</due_dat> </duedate> <pickupname tag="169">
<sen_name>SENDER NAME</sen_name> </pickupname> <pickupaddr tag="170">
<sen_addr1>SENDER1</sen_addr1> <sen_addr2>SENDER2</sen_addr2>
<sen_addr3>NSW</sen_addr3> <sen_addr4>23XX</sen_addr4> </pickupaddr>
<custref tag="171"> <cust_ref>Cust Ref: 1000174788</cust_ref> </custref>
<barcode tag="172"> <barcode_picture>*1694418P*</barcode_picture>
<barcode_number>1694418P</barcode_number>
</barcode>
<priceclass tag="173">
<pr_class>FROZ</pr_class>
</priceclass>
<pltcount tag="174">
<plt_count>14 of 14</plt_count>
</pltcount>
</detail>
</report>



Here is the xsl:


<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html"/>
  <xsl:template match="/">
    
    <body topmargin="0" leftmargin="0" alink="blue" vlink="blue">
      <div class="Section1">
        <xsl:apply-templates/>
      </div>
    </body>
  </xsl:template>
  <xsl:template match="/report/*">
    
  </xsl:template>
  <xsl:template match="/report/ssspage_header">
    

      <pre>
        <xsl:apply-templates/>
      </pre>
    

  </xsl:template>
  <xsl:template match="/report/detail">
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="/report/page_detail">
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="/report/page">
    <center>
      <hr/>
    </center>
  </xsl:template>
  <xsl:template match="line">
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="i">
    /
      <xsl:apply-templates/>
    /
  </xsl:template>
  <xsl:template match="sub">
    <sub>
      <xsl:apply-templates/>
    </sub>
  </xsl:template>
  <xsl:template match="sup">
    <sup>
      <xsl:apply-templates/>
    </sup>
  </xsl:template>
  <xsl:template match="u">
    <u>
      <xsl:apply-templates/>
    </u>
  </xsl:template>
  <xsl:template match="b">
    *
      <xsl:apply-templates/>
    *
  </xsl:template>
  <xsl:template match="text">
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="page_header">
    <div style="width:800px; text-align:right">
      <p class="MsoNormal">
        
          <xsl:value-of select="./del_state"/>
        
     
&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa
0;&#xa0;&#xa0;
       </home/pronto_fms/pronto/bms/images/logo.jpg> 
    </p>
  </div>
</xsl:template>
<xsl:template match="connote">
  <div style="width:800px; text-align:center">
    <p class="MsoNormal">
      
        <xsl:value-of select="./con_nbr"/>
      
    </p>
  </div>
</xsl:template>
<xsl:template match="deliveryname">
  <div style="width:800px; text-align:left">
    
      <xsl:value-of select="./del_name"/>
    
  </div>
</xsl:template>
<xsl:template match="deliveryaddr">
  <div style="width:800px; text-align:left">
    
      <xsl:value-of select="./del_addr1"/>
      &#xa0;
      <xsl:value-of select="./del_addr2"/>
      &#xa0;
      <xsl:value-of select="./del_addr3"/>
      &#xa0;
      <xsl:value-of select="./del_addr4"/>
    
  </div>
</xsl:template>
<xsl:template match="recref">
  <div>
    <p> </p>
  </div>
  <div style="width:800px; text-align:left">
    
      <xsl:value-of select="./rec_ref"/>
    
  </div>
</xsl:template>
<xsl:template match="duedate">
  <div style="width:800px; text-align:left">
    
      <xsl:value-of select="./due_dat"/>
    
  </div>
</xsl:template>
<xsl:template match="pickupname">
  <div>
    <p> </p>
  </div>
  <div style="width:800px; text-align:left">
    
      *<xsl:value-of select="./sen_name"/>*
    
  </div>
</xsl:template>
<xsl:template match="pickupaddr">
  <div style="width:800px; text-align:left">
    
      <xsl:value-of select="./sen_addr1"/>
      &#xa0;
      <xsl:value-of select="./sen_addr2"/>
      &#xa0;
      <xsl:value-of select="./sen_addr3"/>
      &#xa0;
      <xsl:value-of select="./sen_addr4"/>
    
  </div>
</xsl:template>
<xsl:template match="custref">
  <div style="width:800px; text-align:left">
    
      <xsl:value-of select="./cust_ref"/>
    
  </div>
</xsl:template>
<xsl:template match="barcode">
  <div>
    <p> </p>
  </div>
  <div style="width:800px; text-align:center">
    <p class="MsoNormal">
      
        <xsl:value-of select="./barcode_picture"/>
      
    </p>
  </div>
  <div style="width:800px; text-align:center">
    
      <xsl:value-of select="./barcode_number"/>
    
  </div>
</xsl:template>
<xsl:template match="priceclass">
  <div>
    <p> </p>
  </div>
  <div style="width:800px; text-align:center">
    
      <xsl:value-of select="./pr_class"/>
    
  </div>
</xsl:template>
<xsl:template match="pltcount">
  <div>
    <p> </p>
  </div>
  
     </home/pronto_fms/pronto/bms/images/logo.jpg> 
  
  
   
&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa
0;
  
  
    <xsl:value-of select="./plt_count"/>
  
</xsl:template>
</xsl:stylesheet>



And here is the error:


fop-1.0/fop -xml nc1s.xml -xsl nc1s.xsl -pdf nc1s.pdf
11/10/2012 05:34:16 org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: First element must be the fo:root
formatting object. Found (Namespace URI: "", Local Name: "style") instead.
Please make sure you're producing a valid XSL-FO document.
        at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:174)
        at org.apache.fop.cli.Main.main(Main.java:205)

---------

javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: First element must be the fo:root
formatting object. Found (Namespace URI: "", Local Name: "style") instead.
Please make sure you're producing a valid XSL-FO document.
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
717)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2374)
        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2245)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1334)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
738)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1251)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1229)
        at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:174)
        at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: org.apache.fop.fo.ValidationException: First element must be the
fo:root formatting object. Found (Namespace URI: "", Local Name: "style")
instead. Please make sure you're producing a valid XSL-FO document.
        at
org.apache.fop.events.ValidationExceptionFactory.createException(ValidationE
xceptionFactory.java:38)
        at
org.apache.fop.events.EventExceptionManager.throwException(EventExceptionMan
ager.java:54)
        at
org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcast
er.java:175)
        at $Proxy0.invalidFORoot(Unknown Source)
        at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.jav
a:261)
        at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
        at
org.apache.xml.serializer.ToHTMLSAXHandler.closeStartTag(ToHTMLSAXHandler.ja
va:435)
        at
org.apache.xml.serializer.ToHTMLSAXHandler.flushPending(ToHTMLSAXHandler.jav
a:616)
        at
org.apache.xml.serializer.ToHTMLSAXHandler.endElement(ToHTMLSAXHandler.java:
240)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
706)
        ... 10 more


Thanks for helping if you can.



-----
just starting out with FOP - don't hurt me!
--
View this message in context:
http://apache-fop.1065347.n5.nabble.com/XML-to-PDF-on-AIX-tp37006p37010.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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



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


Mime
View raw message