#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    UK
    Posts
    76
    Rep Power
    12

    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. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    U.S.
    Posts
    3
    Rep 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 ;-)
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    UK
    Posts
    76
    Rep Power
    12
    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 ?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    UK
    Posts
    76
    Rep Power
    12
    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 ??
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    U.S.
    Posts
    3
    Rep 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 */
    http://telia.dl.sourceforge.net/sour...-1.95.2.tar.gz

    /* this was a dependency requirement for my RedHat version, may not be for yours */
    ftp://ftp.redhat.com/pub/redhat/linu...96-81.i386.rpm

    /* according to Gingerall... */
    http://download-2.gingerall.cz/downl...rc4-2.i386.rpm
    http://download-2.gingerall.cz/downl...ot-0.95.tar.gz
    http://download-2.gingerall.cz/downl...0.95-PHP.patch
    http://download-2.gingerall.cz/downl...lot-0.95.patch

    /* 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
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    UK
    Posts
    76
    Rep Power
    12
    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 '
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    UK
    Posts
    76
    Rep Power
    12
    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
  14. #8
  15. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    U.S.
    Posts
    3
    Rep 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. ;-)
  16. #9
  17. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Posts
    1
    Rep 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?
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    UK
    Posts
    76
    Rep Power
    12
    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
  20. #11
  21. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    India
    Posts
    192
    Rep Power
    13
    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.
  22. #12
  23. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    India
    Posts
    192
    Rep Power
    13
    Hi bekks,

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

IMN logo majestic logo threadwatch logo seochat tools logo