|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
is sablotron the only xml toolkit for php?
I was looking for an xml toolkit(more precisley an xslt processor) for my php installation on Linux.
So far ive only found sablotron and it seems like a bit of a nightmare to work with. there seem to many bugs when it comes to compiling and it requires 'hacking' to get the installation to work , which im not very good at , at all. does anyone know of any other xml/xslt toolkit to work with php ? thanks |
|
#2
|
|||
|
|||
|
eemo,
What sort of problems did you encounter with Sablotron to make you utter the words "nightmare", "bugs", and "hacking"? You don't say that you ever actually got it compiled into PHP or not. I am by no means any type of compiling expert, but I have recently managed to eek out a successful PHP compilation with Sablotron support (along with the latest version of expat) onto my RedHat system. It was definitely a bit confusing at first, but by going through some documentation and examples I found here and there, I managed. And trust me when I say I am no expert. Maybe there is help for your compile problems if that is the case, besides I don't know that there is another alternative for XSLT within PHP besides Sablotron. I have not to this point found any bugs with Sablotron, but then again I'm sure my code has not put it through any kind of stress. My biggest problem now is getting BZip2 support compiled into PHP...Let me know if you can solve that one for me ;-) |
|
#3
|
|||
|
|||
|
well....i never actually tried it, because i had been reading about it and there seemed to be lots of people complaining about its complexity.
I already have php compiled with mysql and apache 2.0 support, does that mean that when i recompile with sablotron support i still have include the apache and mysql extensions ? or will those installations be maintained anyway ? |
|
#4
|
|||
|
|||
|
i keep getting the following error message when trying to configure sablotron with --enable-javascript.
"checking for jsapi.h... no configure: error: required file jsapi.h not found" I have done 'gmake -f makefile.ref' for the javascript sources and that went with no errors i also typed CPLUS_INCLUDE_PATH=/my/install/js at the shell prompt. but i still keep getting the error message. ive even tried .... './configure CXXFLAGS='-02 -g -I/my/install/js/' --enable-javascript' with which i get warning: /my/install/js invalid host type. aarrrghh....what to do ?? |
|
#5
|
|||
|
|||
|
eemo,
I did not take the "with javascript" option (over my head at this point to try and use that within XSLT), but here is my setup that got Sablotron compiled OK for me: In directory above your PHP source files... --downloads-- /* I think this is version 1.95.4 now */ URL /* this was a dependency requirement for my RedHat version, may not be for yours */ URL /* according to Gingerall... */ URL URL URL URL /* this subject is covered in the PHP sources README file */ edit ld.so.cnf file add line '/usr/local/lib' /* install SABLOTRON dependency files */ rpm -i js-1.5rc4-2.i386.rpm rpm -U libstdc++-2.96-81.i386.rpm /* unpack and install EXPAT */ tar -pxzf expat-1.95.2.tar.gz cd expat*/ ./configure make make install cd ../ /* unpack, patch and install SABLOTRON */ tar -pxzf Sablot-0.95.tar.gz patch ./Sablot-0.95/src/engine/sxpath.h < Sablot-0.95-PHP.patch cd Sablot*/ ./configure make make install cd ../ 'patch SABLOTRON PHP extension c file patch ./php-4.X.X/ext/xslt/sablot.c < PHP-sablot-0.95.patch /* recompile PHP with previous .configure commands along with the new Sablot references */ --enable-xml --enable-xslt --with-xslt-sablot |
|
#6
|
|||
|
|||
|
i still get a 'make' error, even though the patch was applied successfully
![]() ' ext/xslt/sablot.lo(.rodata+0x8):/php4/php4/ext/xslt/sablot.c: first defined here collect2: ld returned 1 exit status make: *** [libphp4.la] Error 1 ' |
|
#7
|
|||
|
|||
|
sorry - my fault, i mix my sablot patches up.
i followed ur routine and its worked perfectly. thank you ever so much for the help my turn to help u now, how about a mars bar ? lol |
|
#8
|
|||
|
|||
|
eemo,
Glad it worked out. >>my turn to help u now, how about a mars bar<< I'll take it, it might help while *trying* become proficient with XPath. ;-) |
|
#9
|
|||
|
|||
|
hosting plans that will give you access for this
I'm looking for an ISP/hosting plan (a small, cheap one), which has got sufficient permissions etc to allow me to do this (compile / install sablotron + PHP)
Does anyone know of any ISPs where I could get this? |
|
#10
|
|||
|
|||
|
ive never actually tried any webhosting provider, but i know ipowerweb.com and hostroute.com have good service, so perhaps u could send them an email and see what they say ?
If not, let me move into my new office, and i can give u some space on my webserver which already has sablotron support (its only got 256k uplink though, on a fixed ip address) let me know how u get on with ur search |
|
#11
|
|||
|
|||
|
Hi bekks,
Check these sites for PHP-sablotron support. 1) http://www.netnation.com/products/starter.cfm 2) http://www.modwest.com/webhosting/plan_value.phtml Hope this will serve your purpose. |
|
#12
|
|||
|
|||
|
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > is sablotron the only xml toolkit for php? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|