Re: Document generation from XML

From: Date: Wed, 04 Feb 2004 04:23:59 +0000
Subject: Re: Document generation from XML
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-176746@lists.php.net to get a copy of this message
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" <bigdog@venticon.com> Newsgroups: php.general To: <php-general@lists.php.net> 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" <bigdog@venticon.com> wrote in message news:1075841770.26428.15.camel@bigdog.info.trw.com... > 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

« previous php.general (#176746) next »