Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Fast processing of XML files for CGI

by inman (Curate)
on Dec 08, 2003 at 10:51 UTC ( [id://313050]=note: print w/replies, xml ) Need Help??


in reply to Fast processing of XML files for CGI

Two strategies spring to mind:

Process Files asynchronously - Use a background process to do the work and produce a static HTML file that can be served to a number of clients. This adopts a write once read many strategy.

Concatenate and transform - Concatenate the XML files into one large XML file and use XSLT to transform the XML into an HTML page.

In both cases I am assuming that you are looking for the HTML page to be refreshed regularly (e.g. every 30 seconds or so) and be viewed by a number of people (the help desk operatives).

  • Comment on Re: Fast processing of XML files for CGI

Replies are listed 'Best First'.
Re: Re: Fast processing of XML files for CGI
by inman (Curate) on Dec 08, 2003 at 11:22 UTC
    The following code relates to the earlier post and shows the processing of a concatenated XML file using an XSLT. This has been tested using a Xalan on the command line but this is available as XML::Xalan.

    Example of concatenated XML reports:

    Example of XSLT to do the conversion:

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://313050]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-24 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found