Libxslt is the XSLT C library developed for the GNOME project. It provides an implementation of XSLT 1.0 and common extensions like EXSLT. Libxslt is based on libxml2 (for XML parsing, tree manipulation and XPath support).
Questions tagged [libxslt]
110 questions
0
votes
2 answers
It's possible to create custom function for LibXML/LibXSLT which change context?
I'm wondering if there is any way how to create custom function/element which will behave similar to
I know there is a way how to register function/element, but none of this is capable (as far as I know) to change context and…

Ludek Vodicka
- 1,610
- 1
- 18
- 33
0
votes
1 answer
Nokogiri installation error for Ruby 1.8.7 for Linux OS
I am working with Rails 3.2.1 and ruby 1.8.7 on Linux OS.
I am trying to install Nokogiri for Authorize-net gem on a WHM Server. I am getting the following error :
gem install nokogiri -v '1.5.0'
Building native extensions. This could take a…

user3445812
- 1
- 1
- 4
0
votes
2 answers
XSLT 1.0 transform number surrounded by brackets in string
I am trying to convert placeholders strings that look like:
Hello {0}
to output
Hello <%- {0} ->
Hello {0}
Any suggestions?

slik
- 5,001
- 6
- 34
- 40
0
votes
2 answers
libxml: "Stack usage error" - further information?
What is the cause of a Stack usage error from libxml2/libxslt/lxml?

Phillip B Oldham
- 18,807
- 20
- 94
- 134
0
votes
1 answer
How to setup LibXslt in PHP to render some attributes with single quotes
This is in continuing for Need to assign attribute value in single quote xslt.
The problem: surround attribute value with single quote ' instead of double ".
Use case: Store JSON in attributes to be passed as settings for plugins etc. Eg:

Vlad Ghita
- 59
- 7
0
votes
1 answer
Unexpected result from xsltproc - libXML
I was helping another user when we ran into this problem.
I have this piece of XSLT where I try to create two keys, one with the first occurrence (in the same parent) of an element containing a given value on a descendant and a second one with all…

jvverde
- 631
- 3
- 10
0
votes
1 answer
XSL: wrap all descendant text and elements?
Given the following XML document:
I'd like to try and capture…

Phillip B Oldham
- 18,807
- 20
- 94
- 134
0
votes
1 answer
Test whether a node contains escaped XML using XSL?
I'm attempting to clean-up a batch of XML I've been provided. There are three situations I need to account for:
some elements have plain text within them, eg. - some text
, which need to be wrapped in another tag, eg.
some…

Phillip B Oldham
- 18,807
- 20
- 94
- 134
0
votes
0 answers
XSLT - Merge two element nodes with different local names
I would like to use XSLT to merge two element nodes where their local names are different.
e.g. Merge file1.xml
Value
Value
…

Kurt Routley
- 13
- 4
0
votes
1 answer
Can I capture which templates have been used/not used during an XSL transformation?
Is it possible to log/capture which XSL templates are used and/or not used during an XML transform using lxml? I'm looking to report on and prune unused templates to reduce "technical debt".

Phillip B Oldham
- 18,807
- 20
- 94
- 134
0
votes
1 answer
Use library of functions without using or
I've got several XSL-Transformations which have common code. The common code consists of functions built with exslt's function-extension. Now I want to outsource these functions into a library, in order to make them more maintainable.
The…

Jost
- 5,948
- 8
- 42
- 72
0
votes
4 answers
Order of execution in xslt stylesheet
Lets say I have a xslt stylesheet like the following:

ajitomatix
- 398
- 3
- 10
0
votes
1 answer
Python packages depending on libxml2 and libxslt
Apart from lxml, is anyone aware of Python packages that depend on libxml2 and libxslt?

Sridhar Ratnakumar
- 81,433
- 63
- 146
- 187
0
votes
1 answer
xmlstarlet not working correct in mac
I created a batch file for windows that executes some xmlstarlet commands. I want to write it as .sh file so that i can run it on mac. The problem is.. Some commands are working fine in windows but not in mac. It didn't show any error too. Eg.
**xml…

LincyTonita
- 327
- 4
- 14
0
votes
1 answer
C++, libxslt: Freeing the stylesheet document after freeing the style sheet results in crash
I'm using libxml2 with libxslt for XML processing from a C++ program. For transforming XML documents with XSL, I use the following function (error handling removed):
xmlDocPtr
transformXmlDocument(
const xmlDocPtr inputDocument,
const…

Jost
- 5,948
- 8
- 42
- 72