Ray,
I can create the XML of the document that I want to generate using the built
in XML functions in PHP.
THe thing I then want to do is be able to do is then use that XML to create
documents in multiple formats, e.g. PDF.
I think that I can use DocBook or Apache FO to do this, but I am not sure
which one to use or how to go about doing it.
Basically I want to be abel to speciy an output format and run the XML
through a transformation to get that format.
Does that make any more sense?
Russell
- Original Message -
From: Ray Hunter [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 8:56 PM
Subject: Re: [PHP] Document generation from XML
On Tue, 2004-02-03 at 13:50, Russell Seymour wrote:
In the beginning only one output format was required, HTML and then PDF
was
a requirement. More and more formats are now required by my users and
rather than create a new output script for each different format I am
thinking about outputting the final report as XML and then putting that
through 'something' to render in the format that I require.
However I am unclear as to the best way to do this as there seems to be
many
different ways. I have looked at using Apache FOP and DocBook, but they
all
spawn off in different directions and bringing in other things such as
Jade.
You can create xml with various extensions in php. You can use sax or
dom to do that or create your own strings that contain xml syntax. I
have done both. What are you really trying to do? Create an xml file
from various data sources? Or create an xml file from another xml file?
--
Ray
Ray Hunter [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Tue, 2004-02-03 at 13:50, Russell Seymour wrote:
In the beginning only one output format was required, HTML and then PDF
was
a requirement. More and more formats are now required by my users and
rather than create a new output script for each different format I am
thinking about outputting the final report as XML and then putting that
through 'something' to render in the format that I require.
However I am unclear as to the best way to do this as there seems to be
many
different ways. I have looked at using Apache FOP and DocBook, but they
all
spawn off in different directions and bringing in other things such as
Jade.
You can create xml with various extensions in php. You can use sax or
dom to do that or create your own strings that contain xml syntax. I
have done both. What are you really trying to do? Create an xml file
from various data sources? Or create an xml file from another xml file?
--
Ray
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php