You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jimmy Pierre <jp...@cisware.com> on 2005/07/31 23:07:47 UTC
Help to convert an XML document to another format
Greetings,
I am not a programmer, so when I encounter the type of problem that I will
expose, I am ever so grateful :-)
I have a report per machine and the report can only be saved in XML.
I would like to now convert the report in whatever, HTML, DOC, PDF,
spreadsheet etc. The issue is that I need to be able to exploit it.
I have posted the report on my site:
<http://www.cisware.co.uk/xmlproblem> http://www.cisware.co.uk/xmlproblem
it's only 20 K
Anybody could give me a tool to just convert this thing? I am fluent in
English/French..
Best wishes,
Jimmy
Re: Help to convert an XML document to another format
Posted by Jake Briggs <ja...@coretech.co.nz>.
Hi Jimmy
Which program generated this xml? The vendor may supply the appropriate
xsl transform file for html and fo (for pdf). The xml looks simple, if
the software vendor cant supply this xsl, you'll have to write one
yourself, or ask someone nicely to do it for you :) . Then you need a
tool to take xml and xsl, and spit out html or fo. When you have the fo,
you need another tool (fop) to make pdf's from it.
The xml doesnt look like docbook or anything to me, it would be fairly
trivial to whip up a basic xsl to transform it.
I have no idea what a good tool would be, but where I work, we use
xsltproc :
http://xmlsoft.org/XSLT/xsltproc2.html
There is a command line windows version also. We also use a java servlet
I wrote to do thias sort of thing, depending on the app. You would go
xsltproc yourxslfile.xsl PTPIERREA4.xml -o transformedfile.fo
Hopefulyl I have been able to help, the other people in this list may
know more. This isnt really the place to ask though, this mailing list
is for fop users. Maybe the vendors who provide the software that
produced the xml in the first place would be able to help you better.
Good luck :)
Jake
Jimmy Pierre wrote:
> Greetings,
>
> I am not a programmer, so when I encounter the type of problem that I
> will expose, I am ever so grateful :-)
>
> I have a report per machine and the report can only be saved in XML.
>
> I would like to now convert the report in whatever, HTML, DOC, PDF,
> spreadsheet etc. The issue is that I need to be able to exploit it.
>
> I have posted the report on my site:
>
> http://www.cisware.co.uk/xmlproblem it’s only 20 K
>
> Anybody could give me a tool to just convert this thing? I am fluent
> in English/French….
>
> Best wishes,
>
> Jimmy
>
--
Jacob Briggs
Systems Engineer
Core Technology
Ph: +64 (04) 499 1102
--
Named after its country of origin 'England', English is a little known dialect used by up to 1.5 billion non-Americans worldwide. Some interesting but obviously incorrect features of the language include:
- queues of people
- wonderful coloUrs
- the useful metal aluminIum
- the exotic herbs (h-urbs), basil (ba-zil) and oregano (o-re-gaa-no)
- specialiSed books called 'dictionaries' that tell you how to spell words correctly
Many people using this bizarre gutter speak also subscribe to the pagan belief that water freezes at 0 degrees and that distances should be measured in the forbidden mathematical system of base-10...
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Help to convert an XML document to another format
Posted by Luke <lu...@lukeshannon.com>.
Hi Jimmy;
One approach is to convert the XML document to an FO document (an XSL template can be created for this conversation). This can then be used to create a PDF document using FOP.
Take a look at this article. The author takes a basic XML document, creates an XSL template to convert it to an FO document and than, using FOP, generates a PDF document. You should be able to this as a guideline for your own document:
http://www.onjava.com/pub/a/onjava/2002/10/16/fop.html?page=1
For a good XSL reference online:
http://www.dpawson.co.uk/xsl/
Also if you are new to XSL (but think you may start using it), I recommend investing in these books:
http://www.amazon.com/exec/obidos/tg/detail/-/1861005946/qid=1122845518/sr=8-13/ref=pd_bbs_13/103-8986387-6628644?v=glance&s=books&n=507846
http://www.amazon.com/exec/obidos/tg/detail/-/0764543814/qid=1122845518/sr=8-4/ref=pd_bbs_4/103-8986387-6628644?v=glance&s=books&n=507846
Hope this helps,
Luke
----- Original Message -----
From: Jimmy Pierre
To: fop-users@xmlgraphics.apache.org ; fop-dev@xmlgraphics.apache.org
Sent: Sunday, July 31, 2005 5:07 PM
Subject: Help to convert an XML document to another format
Greetings,
I am not a programmer, so when I encounter the type of problem that I will expose, I am ever so grateful :-)
I have a report per machine and the report can only be saved in XML.
I would like to now convert the report in whatever, HTML, DOC, PDF, spreadsheet etc. The issue is that I need to be able to exploit it.
I have posted the report on my site:
http://www.cisware.co.uk/xmlproblem it's only 20 K
Anybody could give me a tool to just convert this thing? I am fluent in English/French..
Best wishes,
Jimmy
RE: Help to convert an XML document to another format
Posted by Jimmy Pierre <jp...@cisware.com>.
Hi All,
Thanks to all who invested time to help me out. What I have done is a
cocktail. Using an XSL stylesheet and xslt2.exe, I have now a well formed
HTML file.
Next thing, I am now installing Ununtu 5.10 in order to try FO.
Best wishes and keep up the good jib,
Jimmy
-----Original Message-----
From: Carlos M. S. Bento Nogueira [mailto:cmsbn@student.dei.uc.pt]
Sent: Sunday, July 31, 2005 11:37 PM
To: fop-users@xmlgraphics.apache.org; jpierre@cisware.com
Cc: fop-dev@xmlgraphics.apache.org
Subject: Re: Help to convert an XML document to another format
Hi!
I'm using apache cocoon to pass xml documents from xml to html and from xml
to pdf.
Check cocoon features on
http://cocoon.apache.org/2.1/features.html
and see if it fits your problem. It is not an easy framework for
non-programmers though.
CarlosN.
On Sun, 31 Jul 2005, Jimmy Pierre wrote:
> Greetings,
>
>
>
> I am not a programmer, so when I encounter the type of problem that I
> will expose, I am ever so grateful :-)
>
>
>
> I have a report per machine and the report can only be saved in XML.
>
>
>
> I would like to now convert the report in whatever, HTML, DOC, PDF,
> spreadsheet etc. The issue is that I need to be able to exploit it.
>
>
>
> I have posted the report on my site:
>
>
>
> <http://www.cisware.co.uk/xmlproblem>
> http://www.cisware.co.uk/xmlproblem
> it's only 20 K
>
>
>
> Anybody could give me a tool to just convert this thing? I am fluent
> in English/French..
>
>
>
> Best wishes,
>
> Jimmy
>
>
--
---------------------------------------------------------------------
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
RE: Help to convert an XML document to another format
Posted by Jimmy Pierre <jp...@cisware.com>.
Hi All,
Thanks to all who invested time to help me out. What I have done is a
cocktail. Using an XSL stylesheet and xslt2.exe, I have now a well formed
HTML file.
Next thing, I am now installing Ununtu 5.10 in order to try FO.
Best wishes and keep up the good jib,
Jimmy
-----Original Message-----
From: Carlos M. S. Bento Nogueira [mailto:cmsbn@student.dei.uc.pt]
Sent: Sunday, July 31, 2005 11:37 PM
To: fop-users@xmlgraphics.apache.org; jpierre@cisware.com
Cc: fop-dev@xmlgraphics.apache.org
Subject: Re: Help to convert an XML document to another format
Hi!
I'm using apache cocoon to pass xml documents from xml to html and from xml
to pdf.
Check cocoon features on
http://cocoon.apache.org/2.1/features.html
and see if it fits your problem. It is not an easy framework for
non-programmers though.
CarlosN.
On Sun, 31 Jul 2005, Jimmy Pierre wrote:
> Greetings,
>
>
>
> I am not a programmer, so when I encounter the type of problem that I
> will expose, I am ever so grateful :-)
>
>
>
> I have a report per machine and the report can only be saved in XML.
>
>
>
> I would like to now convert the report in whatever, HTML, DOC, PDF,
> spreadsheet etc. The issue is that I need to be able to exploit it.
>
>
>
> I have posted the report on my site:
>
>
>
> <http://www.cisware.co.uk/xmlproblem>
> http://www.cisware.co.uk/xmlproblem
> it's only 20 K
>
>
>
> Anybody could give me a tool to just convert this thing? I am fluent
> in English/French..
>
>
>
> Best wishes,
>
> Jimmy
>
>
--
Re: Help to convert an XML document to another format
Posted by "Carlos M. S. Bento Nogueira" <cm...@student.dei.uc.pt>.
Hi!
I'm using apache cocoon to pass xml documents from xml to html and from
xml to pdf.
Check cocoon features on
http://cocoon.apache.org/2.1/features.html
and see if it fits your problem. It is not an
easy framework for non-programmers though.
CarlosN.
On Sun, 31 Jul 2005, Jimmy Pierre wrote:
> Greetings,
>
>
>
> I am not a programmer, so when I encounter the type of problem that I will
> expose, I am ever so grateful :-)
>
>
>
> I have a report per machine and the report can only be saved in XML.
>
>
>
> I would like to now convert the report in whatever, HTML, DOC, PDF,
> spreadsheet etc. The issue is that I need to be able to exploit it.
>
>
>
> I have posted the report on my site:
>
>
>
> <http://www.cisware.co.uk/xmlproblem> http://www.cisware.co.uk/xmlproblem
> it's only 20 K
>
>
>
> Anybody could give me a tool to just convert this thing? I am fluent in
> English/French..
>
>
>
> Best wishes,
>
> Jimmy
>
>
--
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Help to convert an XML document to another format
Posted by "Carlos M. S. Bento Nogueira" <cm...@student.dei.uc.pt>.
Hi!
I'm using apache cocoon to pass xml documents from xml to html and from
xml to pdf.
Check cocoon features on
http://cocoon.apache.org/2.1/features.html
and see if it fits your problem. It is not an
easy framework for non-programmers though.
CarlosN.
On Sun, 31 Jul 2005, Jimmy Pierre wrote:
> Greetings,
>
>
>
> I am not a programmer, so when I encounter the type of problem that I will
> expose, I am ever so grateful :-)
>
>
>
> I have a report per machine and the report can only be saved in XML.
>
>
>
> I would like to now convert the report in whatever, HTML, DOC, PDF,
> spreadsheet etc. The issue is that I need to be able to exploit it.
>
>
>
> I have posted the report on my site:
>
>
>
> <http://www.cisware.co.uk/xmlproblem> http://www.cisware.co.uk/xmlproblem
> it's only 20 K
>
>
>
> Anybody could give me a tool to just convert this thing? I am fluent in
> English/French..
>
>
>
> Best wishes,
>
> Jimmy
>
>
--