libxslt is the
XSLT
XSLT (Extensible Stylesheet Language Transformations) is a language originally designed for transforming XML documents into other XML documents, or other formats such as HTML for web pages, plain text, or XSL Formatting Objects. These formats c ...
C library developed for the
GNOME
A gnome () is a mythological creature and diminutive spirit in Renaissance magic and alchemy, introduced by Paracelsus in the 16th century and widely adopted by authors, including those of modern fantasy literature. They are typically depict ...
project. It provides an implementation of XSLT 1.0, plus most of the
EXSLT set of processor-portable extensions functions and some of
Saxon
The Saxons, sometimes called the Old Saxons or Continental Saxons, were a Germanic people of early medieval "Old" Saxony () which became a Carolingian " stem duchy" in 804, in what is now northern Germany. Many of their neighbours were, like th ...
's evaluate and expressions extensions. libxslt is based on
libxml2, which it uses for
XML
Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
parsing, tree manipulation and
XPath
XPath (XML Path Language) is an expression language designed to support the query or transformation of XML documents. It was defined by the World Wide Web Consortium (W3C) in 1999, and can be used to compute values (e.g., strings, numbers, or ...
support. It is
free software
Free software, libre software, libreware sometimes known as freedom-respecting software is computer software distributed open-source license, under terms that allow users to run the software for any purpose as well as to study, change, distribut ...
released under the
MIT License
The MIT License is a permissive software license originating at the Massachusetts Institute of Technology (MIT) in the late 1980s. As a permissive license, it puts very few restrictions on reuse and therefore has high license compatibility.
Unl ...
and can be reused in commercial applications.
libxslt can be used either as library embedded into an application, or via th
xsltproccommand line tool. The integration into applications is eased by a multitude o
Being written in C, libxslt is a fast and low-resource processor. This makes it a popular choice for
DocBook
DocBook is a Semantics (computer science), semantic markup language for technical documentation. It was originally intended for writing technical documents related to computer hardware and software, but it can be used for any other sort of docume ...
formatting and as standard XSLT processor for
programming language
A programming language is a system of notation for writing computer programs.
Programming languages are described in terms of their Syntax (programming languages), syntax (form) and semantics (computer science), semantics (meaning), usually def ...
s like
PHP
PHP is a general-purpose scripting language geared towards web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1993 and released in 1995. The PHP reference implementation is now produced by the PHP Group. ...
,
Perl
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Though Perl is not officially an acronym, there are various backronyms in use, including "Practical Extraction and Reporting Language".
Perl was developed ...
or
Python.
The
WebKit
WebKit is a browser engine primarily used in Apple's Safari web browser, as well as all web browsers on iOS and iPadOS. WebKit is also used by the PlayStation consoles starting with the PS3, the Tizen mobile operating systems, the Amazon K ...
layout engine (used e.g. in the
Apple Safari web browser) uses the libxslt library to do XSL transformations.
See also
*
libxml2
*
Saxon XSLT Saxon is an XSLT and XQuery processor created by Michael Kay and now developed and maintained by the company he founded, Saxonica. There are open-source and also closed-source commercial versions. Versions exist for Java, JavaScript and .NET.
Th ...
(competitor)
*
Xalan
Xalan is a popular open source software library from the Apache Software Foundation, that implements the XSLT 1.0 XML transformation language and the XPath 1.0 language. The Xalan XSLT processor is available for both the Java and C++ programming l ...
(competitor)
References
External links
*
XML.com: Appreciating libxslt
C (programming language) libraries
Free software programmed in C
GNOME libraries
Software using the MIT license
XSLT processors
{{markup-languages-stub