473,402 Members | 2,050 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,402 software developers and data experts.

Sablotron error

Hi,

I trying to process an XML file using a XSL but am getting a
Sablotron error ("...mismatched tag") when I entered an accented letter
such as "é". I tried to play around with the encoding and am
currently using UTF-8.

When I process my XML file using XMLSpy the ouput is fine (the é
letter is properly displayed), which leads me to believe that there is
nothing wrong with my XML file strcuture.

The PHP code that I have is very simple (snippet is below).

xslt_set_encoding($xsltproc, 'UTF-8');
$html = xslt_process($xsltproc, 'arg:/_xml', "file://" .
$_SERVER['DOCUMENT_ROOT']."/lib/xsl/XSL_Main_Layout.xsl", NULL,
$xml_file);
Any help would be appreciated!
The XML file is

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type = "text/xsl" href =
"Z:/Slawek/lib/xsl/XSL_Main_Layout.xsl"?>
<content xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
title="Manage User" display_checkbox="false" display_refresh="false"
display_lock="true" filename="CCS_Manage_User" display_menu="Network
Operator Admin" root_table="t_nms_user" display_body="standard"
display_header="true" display_footer="true" help_file="manage_user.htm"
xsi:noNamespaceSchemaLocation="../../lib/xsd/XSD_Standard_Page_Description.xsd"
version="1.2.x" help_subdir="NO">
<section type="item">
<item control="true" name="t_service_provider__name" direction="view"
label="Service Provider">
<value/>
<value selected="true">Test</value>
<value>dw</value>
</item>
</section>
<section type="item">
<item control="false" name="t_nms_user__username"
direction="top/down" label="Login" disabled="false">
<value>Dudé</value>
</item>
</section>
<section type="button" label="NO" permission="48">
<button label="Add" target="NMS_Main.php?page=CCS_Manage_User"/>
<button label="Delete"
target="NMS_Main.php?page=CCS_Manage_User_Table" disabled="true"/>
<button label="Update" target="NMS_Main.php?page=CCS_Manage_User"
disabled="true"/>
</section>
<section type="button">
<button label="&lt;Back Manage User Table"
target="NMS_Main.php?page=CCS_Manage_User_Table"/>
</section>
</content>

Aug 9 '05 #1
1 1365
On 9 Aug 2005 13:11:15 -0700, "Slav" <sl***********@engineer.com> wrote:
I trying to process an XML file using a XSL but am getting a
Sablotron error ("...mismatched tag") when I entered an accented letter
such as "é". I tried to play around with the encoding and am
currently using UTF-8. <value>Dudé</value>


What you posted isn't in UTF-8, but that's not necessarily the whole picture
since perhaps you converted it before posting.

Could you make the XML file available through a webserver so the raw contents
can be seen?

If what you pasted _are_ the raw contents, then it's not UTF-8 encoded; the é
looks like the start of a multibyte character sequence so the parser will
consume the '<' trying to look for trail bytes.

é is two bytes in UTF-8; what you posted is one (and is probably iso-8859-1 or
iso-8859-15).

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Aug 9 '05 #2

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...
0
by: Martin Burkert | last post by:
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...
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...
0
by: Erwan | last post by:
Hi, I noticed one good thing while upgrading to sablotron 1.0.1 : the xpath element@attribute doesn't work anymore , needs to be standards element/@attribute but my question here is why do I...
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...
0
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...
0
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,...

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.