• 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

How to remove the header (Junk Characters) in transformed document?

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,
I have a set of 10 XML files. I apply stylesheet and transforming it into a word file using XSL-FO. Till this everythings is fine.
The word file is stored in the local file system. Note that rendering is done for each XML file in a loop and the transformed output is appended in the same word file. Now, while reading data from the word file using java - file input/output stream, it first encounters some junk characters like some header info. Also, since word file has data multiple XML files, this header info is getting repeated. Kindly, tell me a way to disable inserting the header info during transformation.
Please note that the XSL-FO file does not specify any header.
HOW TO AVOID HEADER IN THE OUTPUT FILE?
Its quite urgent. Kindly reply ASAP.
Thanks in Advance!
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Note that rendering is done for each XML file in a loop and the transformed output is appended in the same word file

Hmm. It sounds like you're trying to physically concatenate several complete Word documents, which isn't even supposed to work.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic