Introduction:
The Extensible Stylesheet Language Transformations (XSLT) specification defines an XML template language
for transforming XML documents. An XSLT engine reads an XSLT file and an XML document and transforms the
document accordingly.
The first tutorial is on building a simple application using the libxslt library to perform XSLT transformations
to convert an XML file into HTML (John Fleck).
http://xmlsoft.org/libxslt/tutorial/libxslttutorial.html
The second tutorial is to perform a series of XSLT transformations to a series of documents. An obvious solution
is to use the operating system's pipe mechanism and start a series of transformation processes, each one taking
as input the output of the previous transformation. It would be interesting, though, and perhaps more efficient
if we could do our job within a single process (Panos Louridas).
http://xmlsoft.org/libxslt/tutorial2/libxslt_pipes.html
This compile:
Using libxml 20622-CVS2642, libxslt 10109 and libexslt 807
xsltproc was compiled against libxml 20622, libxslt 10109 and libexslt 807
libxslt 10109 was compiled against libxml 20622
libexslt 807 was compiled against libxml 20622
libxml 2.6.22 was ported by Ilkka Lehtoranta (ilkleht@isoveli.org) and was used to build this version.
Check out: ftp://xmlsoft.org/libxml2/ for other versions
Compile and Useage (gcc 2.95.3):
libxslt_tutorial
gcc libxslt_tutorial.c -lxml2 -lxslt -lz -lm -liconv -s -Wall -O3 -o libxslt_tutorial
libxslt_tutorial blah.xml blah.csv > ram:blah.html
libxslt_pipes
gcc libxslt_pipes.c -lxml2 -lxslt -lz -lm -liconv -s -Wall -O3 -o libxslt_pipes
libxslt_pipes --out results.xml foo.xsl bar.xsl doc1.xml doc2.xml
Licenses:
John Fleck
This is version 0.4 of the libxslt Tutorial
Copyright © 2001 John Fleck
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation
License, Version 1.1 or any later version published by the Free Software Foundation with no Invariant Sections,
no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found here: http://www.gnu.org/copyleft/fdl.html
Panos Louridas
Copyright © 2004 Panagiotis Louridas
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Creating new archive 'libxslt-morphos-tutorials.lha':
Frozen: ( 51.8%) 3410 => 1642 : libxslt-morphos-tutorials/libxslt-morphos-tutorials.txt
Frozen: ( 64.5%) 3422208 =>1214540 : libxslt-morphos-tutorials/libxslt_pipes
Frozen: ( 67.2%) 3835 => 1257 : libxslt-morphos-tutorials/libxslt_pipes.c
Frozen: ( 64.5%) 3421440 =>1214128 : libxslt-morphos-tutorials/libxslt_tutorial
Frozen: ( 54.5%) 1900 => 863 : libxslt-morphos-tutorials/libxslt_tutorial.c
5 files added, all files OK.
Operation successful.
|