XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 2nd, 2002, 04:48 PM
eemo eemo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: UK
Posts: 76 eemo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 55 sec
Reputation Power: 7
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

Reply With Quote
  #2  
Old September 2nd, 2002, 08:33 PM
max-nix max-nix is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: U.S.
Posts: 3 max-nix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 ;-)

Reply With Quote
  #3  
Old September 3rd, 2002, 04:44 AM
eemo eemo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: UK
Posts: 76 eemo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 55 sec
Reputation Power: 7
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 ?

Reply With Quote
  #4  
Old September 3rd, 2002, 10:35 AM
eemo eemo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: UK
Posts: 76 eemo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 55 sec
Reputation Power: 7
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 ??

Reply With Quote
  #5  
Old September 3rd, 2002, 12:40 PM
max-nix max-nix is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: U.S.
Posts: 3 max-nix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #6  
Old September 4th, 2002, 07:08 AM
eemo eemo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: UK
Posts: 76 eemo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 55 sec
Reputation Power: 7
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 '

Reply With Quote
  #7  
Old September 4th, 2002, 07:56 AM
eemo eemo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: UK
Posts: 76 eemo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 55 sec
Reputation Power: 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

Reply With Quote
  #8  
Old September 4th, 2002, 11:39 AM
max-nix max-nix is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: U.S.
Posts: 3 max-nix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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. ;-)

Reply With Quote
  #9  
Old September 11th, 2002, 07:49 PM
bekks bekks is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 1 bekks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #10  
Old September 12th, 2002, 05:17 AM
eemo eemo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: UK
Posts: 76 eemo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 55 sec
Reputation Power: 7
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

Reply With Quote
  #11  
Old November 11th, 2002, 03:44 AM
ads ads is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: India
Posts: 192 ads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 27 sec
Reputation Power: 8
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.

Reply With Quote
  #12  
Old November 11th, 2002, 03:58 AM
ads ads is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: India
Posts: 192 ads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 27 sec
Reputation Power: 8
Hi bekks,

This PHP-Sabloron support hosting is still cheaper.
http://www.h2hosting.com/hosting.htm

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > is sablotron the only xml toolkit for php?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT