473,773 Members | 2,398 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

lack of XSLT support in php 5.2.1

Hello,

i got a problem with my hosting provider and the system admin seems
not to be a top class specialist...
I'm not one myself though.

The problem is related to XSLT support in php.
phpinfo() returns:
PHP Version 5.2.1
'./configure' '--enable-pic' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-libdir=lib64' '--prefix=/usr/local' '--with-xml'
'--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom'
'--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp'
'--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr'
'--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-iconv'
'--with-imap=/usr/local/imap-2004g' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt'
'--with-mhash' '--enable-magic-quotes' '--with-mysqli'
'--with-mysql=/usr' '--with-openssl' '--enable-discard-path'
'--with-pear' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets'
'--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr'
'--enable-gd-native-ttf' '--with-xmlrpc' '--with-zlib'

Now, the interesting parts are:
'--with-dom-xslt' '--enable-xslt' '--with-xslt-sablot'

Those would suggest that php was in fact compiled with support for xslt
in 3 different ways. In fact, non of those are acctualy avaiable in php.
Using any of them produces fatel error. DomDocument seems to be there,
but domxlm_xslt* functions are not. xslt_create is not avaiable nor is
XSLTProcessor class.

Anyone cold give me a hint what is going on ?

Server is ofc in safe mode, but the admin says that no classes or
functions are being disabled.

Also, in further phpinfo output i cant find anything related to xlst (as
i can on my dev box)

Best regards
Piotr
May 7 '07 #1
2 2374
Piotr ha scritto:
Those would suggest that php was in fact compiled with support for xslt
in 3 different ways. In fact, non of those are acctualy avaiable in php.
Using any of them produces fatel error. DomDocument seems to be there,
but domxlm_xslt* functions are not. xslt_create is not avaiable nor is
XSLTProcessor class.
If you look at the doc, you'll see that DOM XML and XSLT extensions are
for PHP 4 only. Their corresponding extensions in PHP 5 are DOM (which
is normally built-in and lacks XSLT support) and XSL. There also seem to
be some useful wrappers for PHP 4 domxml and xslt script to use them
under PHP5:

http://alexandre.alapetite.net/doc-a...xml-php4-php5/
http://alexandre.alapetite.net/doc-alex/xslt-php4-php5/

(I didn't try these)

--
|\/|55: Mattia Gentilini e 55 motivi per il suo nick (by panda)
|/_| ETICS project at CNAF, INFN, Bologna, Italy
|\/| www.getfirefox.com www.getthunderbird.com
* Using Mac OS X 10.4.9 powered by Cerebros (Core 2 Duo) *
May 7 '07 #2
Mattia Gentilini napisał(a):
If you look at the doc, you'll see that DOM XML and XSLT extensions are
for PHP 4 only. Their corresponding extensions in PHP 5 are DOM (which
is normally built-in and lacks XSLT support) and XSL. There also seem to
be some useful wrappers for PHP 4 domxml and xslt script to use them
under PHP5:

http://alexandre.alapetite.net/doc-a...xml-php4-php5/
http://alexandre.alapetite.net/doc-alex/xslt-php4-php5/

(I didn't try these)
I know that mentioned extensions are ment for php 4. Now they are in
PECL, and still can be compiled in - as they are in this case.

All in all, it seems that the admin did 'not such a great job' with
configuration of the php as he compiled it with options ment for php4.

Thank you for Your interest.
Best regards
Piotr
May 7 '07 #3

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

Similar topics

2
3095
by: Rustam Bogubaev | last post by:
Hi, I have RedHat 9.0 and installed by default Apache+PHP. By default XSLT Sablotron support is not enabled, so how can I rebuild PHP with xslt support? I know that I can rebuild it from sources as described on http://www.protonicdesign.com/tutorial/sablot_and_php.php, but I want to do it without uninstalling and breaking present configuration. I just need append support for XSLT Sablotron.
7
4125
by: RC | last post by:
First, let me say I couldn't find a group discuss XML/XSLT. So I only choose the closest groups to post this message. Here is part of my *.xsl file <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan" xmlns:my-javascript-ext="my-ext1" extension-element-prefixes="my-javascript-ext"
6
4691
by: RC | last post by:
Hello World, I am try do call a JavaScript function from XSLT, but I got function not avaible error. See "????" below. Would someone out there tell me how? Thank Q! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" /> <xsl:template match="/">
0
997
by: Nithya Sampathkumar | last post by:
Hi, We are planning what features /improvements need to go in the next release for XSLT. We are making these decisions based on customer input and feedback. So I would like to hear your views on what you would like to see in the release of XSLT. We are evaluating XSLT 2.0 -
7
2868
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID parameter to the XSLT stylesheet XsltArgumentList xsltArgList = new XsltArgumentList(); xsltArgList.AddParam("pmID", "", pmID); xmlItems.TransformArgumentList = xsltArgList;
6
3237
by: Christopher | last post by:
I am currently in the process of evaluating the performance hits of moving to the .NET platform for our application. I created a sample project that loads the transforms the same XML and XSLT in COM, COM using interop and in C# and then transforms it to HTML. I also tried concatenating the XML and XSL as a string and then loading it to the DOM once as opposed to loading the DOM with the appendChild() method. I see that the C# version is...
1
2420
by: Sergey Dubinets | last post by:
In effort to prioritize our goals we composed the list of random features each of them may add value to set of XSLT tools offered from Microsoft. 1. XSLTc (Compiler for XSLT stylesheets, that generates .NET assemblies) 2. Performance improvements in the XslCompiledTransform
3
1688
by: RC | last post by:
Let's say: if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) { // Now I got an XML object here var xmlDocument = XMLHttpRequestObject.responseXML; // next I have dealing with XML file tags used DOM. var options = xmlDocument.getElementsByTagNameNS(null,"myXMLTag"); doMyFunctionWithHTMLDOM(options);
2
1284
by: MichaelRKramer | last post by:
Hi, I'm new to dotnet 2.0, but I'm an expert in asp 3 or classic asp. Most of my sites are all done with XSLT and ASP which basically writes XMLs. Now I'm reading about the new cool stuff in visual studio 2005. How does VS 2005 or .net 2.0 work with XSLT's? Is what I've been doing the best practice or a dumb ass move? Will I not be using power of 2.0? Lost programmer
0
9621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10264
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9914
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6717
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
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 we have to send another system
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.