hxt-xslt-9.1.1.1: The XSLT modules for HXT.

CopyrightCopyright (C) 2006 Tim Walkenhorst, Uwe Schmidt
LicenseMIT
MaintainerUwe Schmidt (uwe@fh-wedel.de)
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Text.XML.HXT.XSLT.XsltArrows

Description

The HXT arrow interface for the XSLT module

The application programming interface to the arrow modules of the Haskell XML Toolbox. This module exports all important arrows for input, output, parsing, validating and transforming XML. It also exports all basic datatypes and functions of the toolbox.

Synopsis

Documentation

xsltCompileStylesheet :: IOSArrow XmlTree CompiledStylesheet Source

Compile a document representing an XSLT stylesheet into an internal representation

The internal representation is an abstract syntax tree for the XSLT rules. XSLT imports and includes are evaluated and the rules are normalized and prepared for easy application.

xsltCompileStylesheetFromURI :: IOSArrow String CompiledStylesheet Source

A convinient function for combining reading a stylesheet and compilation.

Reading an XSLT stylesheet is always done without validation but with namespace propagation. Comments are removed from the stylesheet.

xsltApplyStylesheet :: CompiledStylesheet -> IOSArrow XmlTree XmlTree Source

apply a compiled XSLT stylesheet to a whole document tree

The compiled stylesheet must have been created with xsltCompileStylesheet or xsltCompileStylesheetFromURI

xsltApplyStylesheetFromURI :: String -> IOSArrow XmlTree XmlTree Source

apply an XSLT stylesheet given by an URI to a whole document tree

The string parameter is the URI of the XSLT stylesheet. In case of an error during stylesheet compilation or stylesheet application all children of the root node are removed and the error status is set in the attribute list of the root node of the input document.