XSLT 2.0 ?

youngbuddha - April 14, 2008 - 18:09
Project:XML Content
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:weam
Status:active
Description

Hi Weam,

Thanks again for making this very useful module. Using the example XML + XSLT supplied in the tarball, I can get some HTML output.

I have a question about XSLT 2.0 support . When I edited the simple-article.xslt file to use version="2.0" ..., the transformation threw an error:

warning: XSLTProcessor::importStylesheet() [function.XSLTProcessor-importStylesheet]: xsl:version: only 1.0 features are supported in /var/www/html/drupal-6.2/sites/default/modules/xmlcontent/xmlcontent.module on line 234.

Line 234 is
$xsl = $proc->importStylesheet($xsl);

May I know part of the code needs to be v2.0 aware? Or is it just that my PHP install needs to be XSLT 2.0 capable? If the latter, any guidance on which PHP module to install/enable?

Thanks,

#1

weam - April 14, 2008 - 19:03
Assigned to:Anonymous» weam

Hello. Thank you for pointing this out. Yes it is most probably a PHP-XSLT issue, because XML Content depends fully on PHP. I will look into it further soon; it's important to know the exact environments under which the module runs.

In the meantime, if you run into a good solution, keep me updated.

Weam

#2

youngbuddha - April 15, 2008 - 21:34

Hi Weam,

FYI, the system specs as returned by 'php -i' are as follows:

PHP Version => 5.1.6

libxml
libXML support => active
libXML Version => 2.6.16
libXML streams => enabled

xml
XML Support => active
XML Namespace Support => active
libxml2 Version => 2.6.16

xsl
XSL => enabled
libxslt Version => 1.1.11
libxslt compiled against libxml Version => 2.6.16
EXSLT => enabled
libexslt Version => 1.1.11

Thanks,

 
 

Drupal is a registered trademark of Dries Buytaert.