473,408 Members | 1,874 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,408 software developers and data experts.

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>Joe</firstName>
<surname>Smith</surname>
</employee>
</source>

<xsl:stylesheet 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 2193

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

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...
4
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...
1
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...
0
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...
0
by: Jim Patterson | last post by:
I am trying to compile php with sablotron and I get this error message ===================================================================== FAILED TEST SUMMARY...
1
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....
0
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
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...
4
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...
0
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...

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.