[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XML/XSL and libxslt ISSUES

Subject: XML/XSL and libxslt ISSUES
From: Frédéric Pozzi <f.pozzi@xxxxxxxxx>
Date: Wed, 10 Nov 2004 15:49:24 +0100
frederic pozzi
Hi,
 
My Environnment :
 
Wamp Serveur runing on winXP sp2 -> http://www.wampserver.com/ seems to
use libxslt as XSLT Processor.
 
 
I am trying to generate dynamically a news page from news.xml & news.xsl
files using php5, the problem I have is that my news.xml include an
external xml file using <!ENTITY>(external file is named
menu_gauche.xml). 
 
So when i generate the page, all the content present in news.xml is
displayed correctly according to news.xsl, but none of the content from
menu_gauche.xml is displayed...
 
The strange thing is that when I generate my news page from the exact
same files (news.xml and news.xsl) using the XSLT Processor of my
developpment tool (Saxon6.5.3) it works and the page is as I expect it
to be.
 
So I guess there is a problem with libxslt ?
 
Sorry for this long post, but I've tried many, many, workaround without
success :-(
 
If Anyone Can help :-)
 
Thanks in advance for your answers.
 
Fp
 
Samples of my Code :
 
here is the php5 code I use for generation :
 
<?
$moteurXslt = new xsltProcessor();

$style = new domDocument();
$style->load('news.xsl');

$moteurXslt->importStylesheet($style);

$source = new domDocument();
$source->load('news.xml');

echo $moteurXslt->transformToXml($source);
?> 
 
here is the declaration of my external xml file:
 
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="news.xsl" type="text/xsl"?>
<!DOCTYPE PAGE [<!ENTITY menu_gauche SYSTEM 'menu_gauche.xml'><!ENTITY
copy "&#169;" ><!ENTITY nbsp "&#x00A0;" > ]> <PAGE>
    <!-- Include the left menu-->&menu_gauche; <NEWS>
        <BLOCK>
            <TITRE>NEWS</TITRE>....
....

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.