libxslt

XSLTProcessor::transformToUri(): Memory allocation failed : reaching arbitrary MAX_URI_LENGTH limit

萝らか妹 提交于 2021-01-29 17:36:45
问题 I have some XML files that I need to "transform" in Html and display on screen. I have developed a simple script that works -almost- all of the times, using DOMDocument and XSLTProcessor . The problem is that sometimes it gives this error, and the resulting html is only a part of the complete content: XSLTProcessor::transformToUri(): Memory allocation failed : reaching arbitrary MAX_URI_LENGTH limit in /var/www/test/index.php on line 14 This is a working copy of my script, which gives the

Alternative XSLT processor to Apache Xalan

半世苍凉 提交于 2020-04-18 02:56:44
问题 I am currently using the Apache Xalan XSLT processor in my Java application, but I would like to use some alternative solution which supports use of extension functions. Xalan seems to be out of date and buggy. I know of Saxonixa Saxon, but it is closed sourced. Is there some open source and well working alternative? 回答1: The current open source version of Saxon, Saxon-HE 9.9, supports "integrated extension functions" (functions written to a particular Saxon-defined Java interface). It doesn

Alternative XSLT processor to Apache Xalan

邮差的信 提交于 2020-04-18 02:55:28
问题 I am currently using the Apache Xalan XSLT processor in my Java application, but I would like to use some alternative solution which supports use of extension functions. Xalan seems to be out of date and buggy. I know of Saxonixa Saxon, but it is closed sourced. Is there some open source and well working alternative? 回答1: The current open source version of Saxon, Saxon-HE 9.9, supports "integrated extension functions" (functions written to a particular Saxon-defined Java interface). It doesn

Alternative XSLT processor to Apache Xalan

☆樱花仙子☆ 提交于 2020-04-18 02:53:07
问题 I am currently using the Apache Xalan XSLT processor in my Java application, but I would like to use some alternative solution which supports use of extension functions. Xalan seems to be out of date and buggy. I know of Saxonixa Saxon, but it is closed sourced. Is there some open source and well working alternative? 回答1: The current open source version of Saxon, Saxon-HE 9.9, supports "integrated extension functions" (functions written to a particular Saxon-defined Java interface). It doesn

how to use exsl:node-set from nodejs/node_xslt?

ぐ巨炮叔叔 提交于 2020-01-02 21:00:19
问题 I am trying to use EXSLT node-set function from nodejs via node_xslt module. This is a simple wrapper around the libxslt library that has support for EXSLT as I could get it. Yet any reference to exsl:node-set produces Thi is how I use it. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl"> <xsl:variable name="variable"> <item /> <item /> </xsl:variable> <xsl:variable name="result" select="exsl

How can I efficiently run XSLT transformations for a large number of files in parallel?

六月ゝ 毕业季﹏ 提交于 2019-12-25 08:39:44
问题 I have to regularly transform large amount of XML files (min. 100K) within 1 folder each time (basically, from the unzipped input dataset), and I'd like to learn how to do that in the most efficient way as possible. My technological stack consists of XLTs and the Saxon XSLT Java libraries, called from Bash scripts. And it runs on an Ubuntu server with 8 cores and a Raid of SSD with 64Gb of Ram. Keep in mind I handle nicely XSLT but I'm still in the process of learning Bash and how to

cpan XML::LibXSLT failed to install

最后都变了- 提交于 2019-12-24 09:39:29
问题 i tried installing the perl module XML::LibXSLT but it fails. googled for it for hours now but nothing help so i am posting this. Maybe someone can help! Thanks in advance! cpan XML::LibXSLT CPAN: Storable loaded ok (v2.20) Going to read '/root/.cpan/Metadata' Database was generated on Mon, 28 Oct 2013 11:08:37 GMT Running install for module 'XML::LibXSLT' CPAN: YAML loaded ok (v0.84) Running make for S/SH/SHLOMIF/XML-LibXSLT-1.81.tar.gz CPAN: Digest::SHA loaded ok (v5.47) CPAN: Compress:

“undefined symbol: __xmlStructuredErrorContext” importing etree from lxml

允我心安 提交于 2019-12-12 12:28:46
问题 >>> import lxml >>> from lxml import etree Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: /usr/local/lib/python3.4/site-packages/lxml/etree.cpython-34m.so: undefined symbol: __xmlStructuredErrorContext i do have libxml2 and libxslt, i have tried uninstalling and reinstalling too, it didn't help. lxml version: 3.4.4, python: 3.4.2, OS: RHEL 5.5 Please help resolve this issue Thanks 回答1: Your version of lxml.etree was compiled against a different version of

How to get Regexp from EXSLT working in libxslt?

送分小仙女□ 提交于 2019-12-10 13:26:11
问题 Has anyone got Regexp working in libxslt? When yes, how? http://www.exslt.org/regexp/index.html When using the command xsltproc --dumpextensions with the latest libxslt I'm not getting any Regexp support :-( 回答1: xsltproc includes {http://exslt.org/strings}replace already these days. Bind some prefix to that namespace, e.g. string, and then call string:replace(). You can get the list of extensions compiled into the xsltproc program using the shell command: xsltproc --dumpextensions If your

Python3 and xml/xslt libraries

浪尽此生 提交于 2019-12-10 13:23:20
问题 In python 2.6 I did this to achieve an xsl tranform import libxml2 import libxslt ... styledoc = libxml2.parseFile(my_xslt_file) style = libxslt.parseStylesheetDoc(styledoc) doc = libxml2.parseDoc(siri_response_data) result = style.applyStylesheet(doc, None) ... What would be the equivalent in Python 3.2? I ask because it seems that lnxml and libxslt are not available in python3.2. I have heard of lxml - is this a direct equivalent of libxml2 + libxslt or does it have different calling