473,466 Members | 1,363 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

xml transformation on the fly?

We am facing a problem with transforming docbook xml to html. I am running
PHP4 on apache and i first tried to use sablotron which took 40+ seconds to
convert a 50kb xml file. When using xsltproc it went down to 10-15. The
machine we have is only 400 mhz but we'd need 2-3 mhz to get anywhere near
real time if we use same method as we are now. I may be missing some
features in xsltlib which can maybe preload the xslt tree or maybe there is
a better processor out threre. I would really appreciate any suggestions on
how to speed this up.

Alex


Jul 20 '05 #1
2 1285
Alex wrote:
I would really appreciate any suggestions on
how to speed this up.


http://www.outoforder.cc/projects/apache/mod_transform/

--
Nick Kew
Jul 20 '05 #2
Alex wrote:
We am facing a problem with transforming docbook xml to html. I am running
PHP4 on apache and i first tried to use sablotron which took 40+ seconds
to convert a 50kb xml file. When using xsltproc it went down to 10-15. The
machine we have is only 400 mhz but we'd need 2-3 mhz to get anywhere near
real time if we use same method as we are now.


Real-time XML --> HTML using XSLT needs both speed and memory.

AxKit is the fastest I have seen, but it doesn't scale well to large files
(but 50Kb is very small). However, I have had serious problems getting it
running on some platforms as the authors don't have extensive platform
access for development testing.

Cocoon is the software of choice for many such applications, as it's fairly
fast, and it has a cache for re-serving unaltered already-converted docs.
But it's Java, so it's a memory hog, and its garbage collection is poor.
I've had it running quite happily on a 400MHz machine provided I don't try
to use the machine as my workstation at the same time :-( but do fill it to
the max with memory.

PropelX is a commercial transformation server. I don't have speed metrics,
but ask the supplier (www.propylon.com).

Do you really need real-time transformation? If the documents only change
every few hours, maybe a static conversion using Saxon or similar is a
better answer, triggered each time a document is re-saved.

///Peter
--
sudo sh -c "cd /;/bin/rm -rf `which killall kill ps shutdown mount gdb` *
&;top"

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sergio del Amo | last post by:
Hi, I use the xslt functions provided by php. I am running in my computer the package xampp(www.apachefriends.org) which includes php/apache/mysql .. In this package the php includes the sablotron...
3
by: pradeep gummi | last post by:
I have an XML FILE that is to be converted to Plain Text using an XSL file. Since I just want plain text, I do not want to set any root element during transformation.And if I do not any root...
4
by: Kevin Dean | last post by:
I'm trying to create an XSL transformation that will strip out development-specific attributes from deployment descriptors and other XML files. I have already successfully done so with web.xml but...
7
by: CK | last post by:
Hello, I have the 60 MB XML string and I am coding a program in Visual Basic to run a XSL transformation on it. Currently, I'm using the Microsoft standard MSXML 2.0 to create a DOM document, load...
8
by: Will | last post by:
I was thrust into XML about 2 weeks ago and don't know much yet. From another department in the corp I am receiving an XML file which concatenates nodes all on one line i.e....
4
by: Mike Conmackie | last post by:
Hi Folks, I've probably omitted something very basic but I have no idea what it might be. The results of my transformation _should_ be an xml file but all I get is the xml declaration...
6
by: Jain, Pranay Kumar | last post by:
Hi All, We have created a simple application that takes a dataset and generates the data in Excel schema format. It uses an xslt file to do the transformation for excel 2002 and so on. We are...
2
by: TomekR | last post by:
Hello ! I was developing xslt sheet lately and - experimenting - I made mistake resulting in that, the effect of the transformation is not well-formed xml document. I made these tests using...
2
by: HendrikLeder | last post by:
Hello everybody :-) Next year I`ll write my diploma in computer science for business (It`s a degree in Germany) and I`ve some questions about the topic. The diploma will handle about refactoring...
1
by: newbie | last post by:
This is probably a too general question, thanks for any feedback in advance. I am trying to write a class to do transformation on a data set. I want to make it easy to maintain in the long-run...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.