• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xml to pdf format ..

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Will anyone tell me how to do tht ..

I have xml file.I want to convert that xml file in pdf format.

<StatementOfAccount IOPUCTY="649" CAGLLIC="BB" ICUSCNO="00001001" DCUABDS="060421" IEPSENT="001001001" ICUSTCN="00001001">
<InvoiceItems>
<InvoiceItem>
<Billing-Transaction ICININO="BILL6">
<QCUA3SQ>2</QCUA3SQ>
<DCINISS>050408</DCINISS>
<DCINDUE>050408</DCINDUE>
<ACINTOT>3000.00</ACINTOT>
<ACINTOTL>3000.00</ACINTOTL>
<ACINTOTU>3000.00</ACINTOTU>
<ACINVAT>0.00</ACINVAT>
<ACINBAL>3000.00</ACINBAL>
<ACINBALL>3000.00</ACINBALL>
<ACINBALU>3000.00</ACINBALU>
</Billing-Transaction>
</InvoiceItem>
<InvoiceItem>
<Billing-Transaction ICININO="BILL7">
<QCUA3SQ>3</QCUA3SQ>
<DCINISS>050408</DCINISS>
<DCINDUE>050408</DCINDUE>
<ACINTOT>3500.00</ACINTOT>
<ACINTOTL>3500.00</ACINTOTL>
<ACINTOTU>3500.00</ACINTOTU>
<ACINVAT>0.00</ACINVAT>
<ACINBAL>3500.00</ACINBAL>
<ACINBALL>3500.00</ACINBALL>
<ACINBALU>3500.00</ACINBALU>
</Billing-Transaction>
</InvoiceItem>
</InvoiceItems>
</StatementOfAccount>
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can do this using XSL-FO , using the apache fop engine.

XML-Spy can also do this for you. (altova StyleVision)
 
AshMir Anil
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I m using xml-spy [altova style vision and I m getting the pdf format also. but my question is how to retrive Billing -transaction child elements.
I have written the following code.
I m not able to acess Billing-Transaction child elements values.
Will u plz tell me how to do tht .
Expecting positive response....
<xsl:template match="StatementOfAccount">
<xsl:apply-templates select="CustomerHeader"/>

<fo:flow flow-name="Arrears Body" xsl:use-attribute-sets="fs10">

<xsl:apply-templates select="CustomerFooter"/>
<xsl:apply-templates select="InvoiceItems"/>

<fo:block id="lastPage"/>
</fo:flow>
</xsl:template>
<xsl:template match="InvoiceItems">
<fo:table>
<fo:table-header>
<fo:table-body>

<xsl:apply-templates select="InvoiceITem//Billing-Transaction"/>
</fo:table-body>
</fo:table-header>
</fo:table>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic