473,796 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sablotron on Windows

hello everyone,

i'm generating HTML output with a PHP-Script using the xslt-functions
from the php_xslt-extension and an XML / XSLT - File.

Some system-infos:

PHP 4.3.4
Apache/1.3.20 (Win32)

expat.dll, iconv.dll and sablot.dll are the one delivered with the
zipped 4.3.4-package and were copied to the system32 folder as usual.

On line 36 my script uses xslt_process(). It prints out following error
message:

--- <snip> ---

Warning: Sablotron error on line 1: XML parser error 4: not well-formed
(invalid token) in d:\wwwroot\xml_ transform\index .php on line 36
XSLT processing error: XML parser error 4: not well-formed (invalid token)

--- </snip> ---

Same script, same XML, XSL-file with same PHP version 4.3.4 compiled
with '--enable-xslt' '--with-xslt-sablot' on a unix-system works fine,
and generates the HTML output without any problems.

I checked my XML and XSL file to be well-formed with several services on
the net. There shouldn't be a problem about this.

Here are the both files passed the my xslt_process()-function:

--- <snip> ---

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="test.xsl" ?>
<source>
<employee>
<firstName>Jo e</firstName>
<surname>Smit h</surname>
</employee>
</source>

<xsl:styleshe et version="1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" />
<xsl:template match="employee ">
<b>
<xsl:value-of select="."/>
</b>
</xsl:template>
<xsl:template match="surname" >
<i>
<xsl:value-of select="."/>
</i>
</xsl:template>
</xsl:stylesheet>

--- </snip> ---

Does anyone has an idea?

--
Thanks, Martin

Jul 17 '05 #1
0 2226

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

Similar topics

12
12893
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 php's rpm, I wonder if I can use it directly and tell the rpm command to use this compilation option. Is it possible ? If not, that's no problem since I can download php and compile, but still I'm wondering if rpms can be used with such options....
4
2787
by: Simone | last post by:
this (my) script i's ok: <?php $processor=xslt_create(); $result=xslt_process($processor,'xsl/curriculum.xml','xsl/curriculum.xsl'); if (!$result) { echo xslt_error($processor); } else {echo $result;} xslt_free($processor);
1
1936
by: Christos Margetis | last post by:
We are trying to implement a XSL feed of a big PPC provider in our PHP interface which is working with xsl & XML feeds over Sablotron. An engineer with knowledge on Sablotron would be appreciated. Kind regards, Chris Margetis http://www.clickgofind.com http://www.itadvanced.co.uk
0
1920
by: Steve Jenkins | last post by:
Hi all, I'm trying to install Sablotron on Red Hat Linux release 7.2 (Enigma). I've got Sablotron to compile. I now get the following error when running ./configure on PHP: checking for Sablotron libraries in the default path... found in /usr/local checking for sablot-config... found checking for Sablotron version... configure: error: Sablotron version
0
1880
by: Jim Patterson | last post by:
I am trying to compile php with sablotron and I get this error message ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- xslt_set_object function ===================================================================== make: *** Error 1
1
1440
by: krigare | last post by:
Everything compiles. Can run sabcmd with no problems. But when running a simple php script, it cannot find the sablotron functions. So it does not appear to be linking the Sablotron stuff. Probably just something simple I am missing. Any suggestions? Built with: configure --with-xml --with-expat=/usr/local --enable-xslt --with-xslt-sablot=/usr/local
0
1202
by: Sebastian Langer | last post by:
Hi! I am looking for a Sablotron C++ API - tutorial that explains sablotron and how to use SDOM functions. The GingerAll Sablotron Reference does not help me too much. Thank you, Sebastian
9
4795
by: Martin Plantec | last post by:
Hello, I have managed (with your help!) to make a working XSLT stylesheet; it works fine locally (Windows Apache + PHP with Sablotron 1.0), but it fails on the remote host (FreeBSD Apache + PHP with Sablotron 1.0) with the following: Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invalid token) in /...host...path.../page.php on line 28 FAILURE : XML parser error 4: not well-formed (invalid token) ; error
4
1314
by: gouranga | last post by:
Sablotron keeps giving an error (non-XSL instruction) on the line with this code: <xsl:result-document href="slideshow/index.html" format="html"> Is this implemented in Sablotron? It's quite urgent :) Thx in advance.
0
10452
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
10221
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...
1
10169
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
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
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
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
3730
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.