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="<Back Manage User Table"
target="NMS_Main.php?page=CCS_Manage_User_Table"/>
</section>
</content>