How to remove elements from xml using xslt with stylesheet and xsltproc?

I have a lot of XML files which have something of the form: <Element fruit="apple" animal="cat" /> Which I want to be removed from the file. Using an XSLT stylesheet and the Linux command-line...

XSL import: how to overcome differences in location of (docbook or other) style files

Coming from a Linux distribution and having copy/pasted from a number of examples across the net, I am doing the following to include DocBook style in my XSL files (processed with xsltproc): <?xml...

Can you refactor Maven pom.xml files into reusable XML fragments?

In Maven, is it possible to refactor commonly repeated fragments into a reusable "library" (plugin)? I realize that I can write my own plugins, but often the functionality I want to re-use is...

How to execute XPath one-liners from shell?

Is there a package out there, for Ubuntu and/or CentOS, that has a command-line tool that can execute an XPath one-liner like foo //[email protected] filename.xml or foo //[email protected] <...

How to install boost on gnu/linux

There are so many tutorials and yet nothing clarified me how to install this library correctly. I want to install it in the default gnu/linux library directories. I tried: $ sudo ./bootstrap.sh $...

Convert MathML to Latex

Inspired by this post, I tried to convert the MathML example, which looks like this: <math> <mrow> <mfrac> <mrow><mi>x</mi></mrow> <mrow><mi>y</mi></mrow> </mfrac> ...

How to use the documentation of C++ code inside an IDE on linux?

Up to now i tried Eclipse, KDevelop and Code::Blocks. Code::Blocks (12.11) seems not to be able to display documentation at all. Eclipse (4.3.2) is able to display the documentation of at least...

Docbook HTML Help Index

I have been using htmlhelp xsl to produce my htmlhelp files. Until yesterday, the index was there. But from today, I don't see any entry there in the index.hhk file. I am using xsltproc to...

Unable to locate package mingw32

Excuse me, I am compiling Android open source project(AOSP) on the Ubuntu 15.04 accroding to this web page(http://blog.logan.tw/2013/09/build-android-aosp.html), I need to install some tools by...

mplayer build with address sanitizer (asan)

I am trying to build mplayer using clang with the address sanitizer flag. However, I keeps getting errors when I execute make. Here is the full output log including the commands I used. Any help...

libxml-ruby: Failed to build gem native extension

I'm trying to install libxml-ruby. I have installed libxml2, libxslt and coreutils I have also read other posts regarding the issue but none solved it for me. brew list...

docker: freeze library dependencies

I have the following Docker file FROM debian MAINTAINER Me ENV NODE_VERSION 6.2.2 RUN apt-get update \ && apt-get install -y --force-yes --no-install-recommends \ build-essential \ ...

Parsing xml to and replacing specific tags shell script

For the below xml ,I need to replace <studentStatus> for <studentName>CLASSA</studentName> to...

xsltproc on windows: I/O error: invalid argument if argument is absolute path

I'm using xsltproc on Windows as per this guide When I run xsltproc with relative paths, i.e.: xsltproc -o "..\output.html" "c:\templates\out.xsl" "c:\data\input.xml" everything is ok. But when...

XSLT 1.0 (xsltproc) - How to replace last occurence of a character?

I'm trying to replace the last occurrence of '.' character with '/' character in using XSLT (xslt 1.0 xsltproc). How can I do that? Input.xml <testng-results> <suite> <test> <class...

Linux - bash script to remove each line before the same line from a file

I have an invalid xml file (it's an output of another process), I need to validate it in linux (bash script). In the invalid file there are empty tags - without closing tags like: <om> <om> <some...

How to include xml inside xsl:comment and maintain indents

I'm writing some xsl to transform a book outline in xml into a bunch of individual xml files (one for each chapter, plus some frontmatter, etc). I'll do this with <exsl:document>, and much of the...

How to dramatically increase the speed of xsltproc command?

This is the format of my XML data: <?xml version="1.0" encoding="utf-8"?> <rowdata> <row Id="1" type="1" data="text" ... /> <row Id="2" type="2" data="text" parent="1" ... /> <row Id="3"...

Is there an easy way to validate schematron in xsd through bash commands

I have a project where I need to add schematron to my xsd. The problem is that I was using xmllint which does not allow to validate schematron, I found other solutions like using xsltproc and...

XSLT generates output with undeclared namespace prefix in Saxon. error XTSE1430: Namespace prefix exsl is undeclared

I am trying to validate a Yang model against an XML instance. I found this bash script[1] that does the job, but I want to rewrite it using Java. Saxon version Saxon 9.9.1-5. xsltproc...

XSLT 1.0 (xsltproc) - Unable to Parse Huge XML

I am trying to parse an input xml file that is 13,00,000 lines long with a size of 56 MB, using xsltproc. I get the below error: input.xml:245393: parser error : internal error: Huge input lookup ...

C++ Libraries for XSLT processing to do XML transformation

I'm working on a project where it's requires accepting an XSL and XML as inputs and outputa an HTML file. I already have the XSL scripts, it's proven to work as expected when transforming an XML...

Windows authentication in linux docker container

i am trying to use windows authentication in linux docker container under kubernetes. I am following this settings:...

Not able to find dependency for fop command in Yocto

I'm trying to convert XML file into PDF format using xsltproc & fop tool. I've created recipe for this in yocto. do_install { xsltproc /usr/share/xml/docbook/xsl-stylesheets/fo/docbook.xsl...

zsh autocompletion not working: _get_comp_words_by_ref:16: bad substitution

Just switched to using zsh (Oh-My-Zsh) and can't get autocompletion to work. Whenever I open a new terminal (using iTerm as well as VSCode terminal), the following output is printed to the...

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

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...

updating pom.xml elements using xslt

I'm trying to update just finalName, artifactId and name in pom.xml using xslt. I don't understand xslt transformation, but I found this:...

Running sudo snap on WSL2 with ubuntu18.04

By following https://askubuntu.com/questions/1177729/wsl-am-i-running-version-1-or-version-2 I've verified that my WSL is version 2. Running uname -a outputs "Linux DESKTOP...

Getting errror When install Postgis in Postgresql 14 from source

I'm trying to install Postgis. I have install prerequisite: Geos 3.5.6 Proj 7.0.0 Jsonc 0.15 gDal 3.0.0 This is logs when Configure Postgis: ./configure --prefix=/opt/postgis...

Copy folder from Dockerfile to host

I have a docker file FROM ubuntu:20.04 ################################ ### INSTALL Ubuntu build tools and prerequisites ################################ # Install build base ARG...