Jump to:
| Project: | XML Content |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | weam |
| Status: | active |
Issue Summary
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,
Comments
#1
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
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,
#3
I have the same issue. I see this issue is outstanding for some time. Has anyone had success integrating a 2.0 XSL doc?
#4
I doubt it: PHP's XSLT functionality seems to be based on LibXSLT - and LibXSLT does not support XSLT 2.0.
You would probably need to switch to Saxon if you want support for XSLT 2.0.
Regards,
Lars