473,326 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

domxml in PHP - plz help !

2
Hi,

I am newbie in php and i am having some probs. This is a cool forum and i ask
for your help. so plz help me if u can.

Here is my prob --

I am using domxml to read and write data from xml files . the reading and writing part works perfectly but i have problem using xslt.

when i use this function ' domxml_xslt_stylesheet_file ' is says that it is undefined. I have installed 'xampp-win32-1.4.14-installer' which has apache
inside.

The phpinfo says :

PHP Version 5.0.4

Configure Command cscript /nologo configure.js "--enable-snapshot-build"

dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.19
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

domxml
DOM/XML enabled
DOM/XML API Version 20030407
libxml Version 20619
HTML Support enabled
XPath Support enabled
XPointer Support enabled

libxml
libXML support active
libXML Version 2.6.19
libXML streams enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.19

xsl
XSL enabled
libxslt Version 1.1.7
libxslt compiled against libxml Version 2.6.11
EXSLT enabled
libexslt Version 0.8.5

--

the manual says i need libxslt.dll file i didn't find any in my installation folder.
i changed my php.ini settings as:

...more
extension=php_domxml.dll
;extension=php_xmlreader.dll
;extension=php_xmlrpc.dll
extension=php_xsl.dll
...more

functions like 'domxml_open_file' works but 'domxml_xslt_stylesheet_file' , 'domxml_xslt_stylesheet_doc' does not work.

How can i make them work ? :confused:

I am trying hard to find out. plz help. :(
Apr 19 '06 #1
2 6568
Sammis
2
the manual says i need libxslt.dll file i didn't find any in my installation folder.
i changed my php.ini settings as:

...more
extension=php_domxml.dll
;extension=php_xmlreader.dll
;extension=php_xmlrpc.dll
extension=php_xsl.dll
...more

functions like 'domxml_open_file' works but 'domxml_xslt_stylesheet_file' , 'domxml_xslt_stylesheet_doc' does not work.
It seems like you are using functions that are not included in the parsers that you currently have (php_xsl.dll).

I had a similar problem and I have a very similar configuration as you. (I run XAMPP (XAMPP Lite) on Windows.).

I found that with this configuration, after uncommenting php_xsl.dll in my php.ini I could use functions found at this page: http://se2.php.net/xsl , but not the functions that you mentioned.

(My problem was that I wanted to translate an xml file through an xslt, and the only working syntax for this was the one I found on that page (http://se2.php.net/manual/en/functio...orm-to-xml.php ))
Aug 5 '06 #2
Sammis
2
Oh, one more thing: Did you make sure that the php_xsl.dll is uncommented in BOTH of the php.ini files in XAMPP:

[path to xampp folder]/php/php.ini
and:
[path to xampp folder]/apache/bin/php.ini

?

(I don't know the difference of these files... but anyway it might be a good thing to uncomment it in both of these...)
Aug 5 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Ghislain Benrais | last post by:
Hello, My "problem" : install php's XSLT API. 1)I installed Sablotron (with the rpm) : ok 2) I read every where that the next step was to compile php with option --with-xslt-sablot. Since I have...
0
by: Terence | last post by:
The XML (expat) extension to PHP contains specific functions for accessing detailed error information when an error occurs parsing an XML packet. All be it convoluted, even the XSLT (Sablotron)...
3
by: srommens | last post by:
Hello, When I try to do : URI = <xsl:value-of select="//@URI"/><br/> <xsl:if test = "//@URI != '5-42922'">not equal</xsl:if><br/> <xsl:if test = "//@URI = '5-42922'">equal</xsl:if><br/> ...
4
by: webguynow | last post by:
need the straight dope on domxml for Windows ! Is it bundled or are DLL's necessary ? Also, what changes are needed in php.ini ? My setup: WXP, PHP 5.0.2 as an Apache Module, libxml v2.6.11...
0
by: bissatch | last post by:
Hi, I have installed Apache2. I have installed PHP4.3.0. All is working fine. I have now went and tried to install DOMXML into PHP by simply uncommenting the extension = php_domxml.dll (or...
3
by: bissatch | last post by:
Hi, I have recently installed PHP4 with Apache2. Currently I am trying to install the DOMXML extension. According to what I have read, if I uncomment the extension=php_domxml.dll line in php.ini...
5
by: bissatch | last post by:
Hi, I have just managed to install DOMXML on my apache/PHP setup. I am running PHP 4.3.0 and Apache2. $xmldoc = domxml_open_file("inc/menu.xml", DOMXML_LOAD_DONT_KEEP_BLANKS); When I try...
2
mageswar005
by: mageswar005 | last post by:
hi, I installed php5 in linux server, inside the usr/lib/php5 the domxml.so file is missing,without domsml.so i can'nt able to import scorm packages. How can i install domxml.so to my linux...
2
mageswar005
by: mageswar005 | last post by:
Hi guys, Any body have any idea about php5 domxml with obuntu linux server. I have installed php5,Apache2,Mysql on linux ubuntu server,but Domxml is not working properly.I dont know why...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.