# The XSLT C library for GNOME ## The programming API

Main Menu
Home Introduction Documentation Reporting bugs and getting help How to help Downloads FAQ News The xsltproc tool DocBook The programming API Python and bindings Library internals Writing extensions Contributions libexslt flat page, stylesheet API Menu ChangeLog
Related links
Tutorial, Tutorial2 Man page for xsltproc Mail archive XML libxml2 FTP Windows binaries Solaris binaries MacOsX binaries Bug Tracker XSLT with PHP Apache module Pascal bindings Xsldbg Debugger
API Indexes
Alphabetic Constructors Functions/Types Modules Symbols
Okay this section is clearly incomplete. But integrating libxslt into your application should be relatively easy. First check the few steps described below, then for more detailed information, look at the generated pages for the API and the source of libxslt/xsltproc.c and the tutorial. Basically doing an XSLT transformation can be done in a few steps: configure the parser for XSLT: xmlSubstituteEntitiesDefault(1); xmlLoadExtDtdDefaultValue = 1; parse the stylesheet with xsltParseStylesheetFile() parse the document with xmlParseFile() apply the stylesheet using xsltApplyStylesheet() save the result using xsltSaveResultToFile() if needed set xmlIndentTreeOutput to 1 Steps 2,3, and 5 will probably need to be changed depending on you processing needs and environment for example if reading/saving from/to memory, or if you want to apply XInclude processing to the stylesheet or input documents. Daniel Veillard