[PHP] [ERR] RE: [PHP] Document generation from XML

2004-02-04 Thread postmaster
Transmit Report:

 To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
--- Begin Message ---
Russell Seymour wrote:
> 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?

Yes, actually.

There is a great tutorial[1] over at IBM's DeveroperWorks that talks about
this.  They call it the Toot-O-Matic, and it is a Java application that uses
an XML document to create PDF, ZIP, HTML, and even JPEG files to
auto-generate tutorials.

[ trimmed ]

[1] http://www-106.ibm.com/developerworks/xml/library/x-toot/index.html

( there are several links to toot-o-matic, but that should get you started )

-- 
Burhan Khalid
phplist[at]meidomus[dot]com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---


RE: [PHP] Document generation from XML

2004-02-04 Thread Burhan Khalid
Russell Seymour wrote:
> 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?

Yes, actually.

There is a great tutorial[1] over at IBM's DeveroperWorks that talks about
this.  They call it the Toot-O-Matic, and it is a Java application that uses
an XML document to create PDF, ZIP, HTML, and even JPEG files to
auto-generate tutorials.

[ trimmed ]

[1] http://www-106.ibm.com/developerworks/xml/library/x-toot/index.html

( there are several links to toot-o-matic, but that should get you started )

-- 
Burhan Khalid
phplist[at]meidomus[dot]com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Document generation from XML

2004-02-03 Thread Russell Seymour
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



RE: [PHP] Document generation from XML

2004-02-03 Thread Williams, Olwen - SAL
I'm working with another (very unusual) webserver on our intranet.  When I
wanted to do graphs recently I settled on an XML output from my other
server, and a PHP routine on apache that produces the graph.

The other server references the PHP which outputs a .png sending enough
information to that routine to request XML from the first server.  Our
applications are not heavily used, but this works well, and I will probably
use it to create other forms of output as well.

Olwen Williams
[EMAIL PROTECTED]



-Original Message-
From: Cesar Cordovez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 10:02 AM
To: Russell Seymour
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Document generation from XML


I had exactly the same problem some time ago...  My solution was very 
similiar of what you are trying to do, but my "internal" format is not 
XML but a group of arrays (faster processing).  Then using some OOP I 
created the diferent "output formats" for my reports, therefore I have a 
microsoft excel object, a pdf object, a html, an xml object, etc.  (you 
get the idea).




Russell Seymour wrote:

> Good evening list,
> 
> I apologise profusely if after reading anyone thinks that is OT, but I
> relally need some pointers with a project I am working on.  I have
searched
> the Internet for information on XML document generation but there is too
> much information that I cannot decide which way to go.  Thanks lots in
> advance.
> 
> I am currently writing a web based application using PHP that created
> reports on the fly from a multitude of data sources.
> 


CAUTION - This message may contain privileged and confidential 
information intended only for the use of the addressee named above.
If you are not the intended recipient of this message you are hereby 
notified that any use, dissemination, distribution or reproduction 
of this message is prohibited. If you have received this message in 
error please notify Safe Air Ltd immediately. Any views expressed 
in this message are those of the individual sender and may not 
necessarily reflect the views of Safe Air.
_
For more information on the Safe Air Group, visit us online
at http://www.safeair.co.nz/ 
_

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Document generation from XML

2004-02-03 Thread Cesar Cordovez
I had exactly the same problem some time ago...  My solution was very 
similiar of what you are trying to do, but my "internal" format is not 
XML but a group of arrays (faster processing).  Then using some OOP I 
created the diferent "output formats" for my reports, therefore I have a 
microsoft excel object, a pdf object, a html, an xml object, etc.  (you 
get the idea).



Russell Seymour wrote:

Good evening list,

I apologise profusely if after reading anyone thinks that is OT, but I
relally need some pointers with a project I am working on.  I have searched
the Internet for information on XML document generation but there is too
much information that I cannot decide which way to go.  Thanks lots in
advance.
I am currently writing a web based application using PHP that created
reports on the fly from a multitude of data sources.
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.
This post maybe slightly OT, but if nayone has any pointers on how I amy go
about doing this I would be very very grateful.
Thanks very much.

Russell

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Document generation from XML

2004-02-03 Thread Ray Hunter
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