/usr/share/doc/libxslt-devel/html
NameSizeModeActions
book1.html68210644editdlrm
home.png6540644editdlrm
index.html68210644editdlrm
left.png4590644editdlrm
libxslt-attributes.html93560644editdlrm
libxslt-documents.html164470644editdlrm
libxslt-extensions.html496180644editdlrm
libxslt-extra.html101790644editdlrm
libxslt-functions.html140300644editdlrm
libxslt-imports.html128460644editdlrm
libxslt-keys.html112610644editdlrm
libxslt-lib.html68210644editdlrm
libxslt-namespaces.html156210644editdlrm
libxslt-numbersInternals.html77120644editdlrm
libxslt-pattern.html167060644editdlrm
libxslt-preproc.html87310644editdlrm
libxslt-security.html201510644editdlrm
libxslt-templates.html208950644editdlrm
libxslt-transform.html513230644editdlrm
libxslt-variables.html231580644editdlrm
libxslt-xslt.html77900644editdlrm
libxslt-xsltexports.html67350644editdlrm
libxslt-xsltInternals.html1097310644editdlrm
libxslt-xsltlocale.html114310644editdlrm
libxslt-xsltutils.html507800644editdlrm
right.png4720644editdlrm
up.png4060644editdlrm
Edit: /usr/share/doc/libxslt-devel/html/libxslt-documents.html (16447B)
Module documents from libxslt
Action against software patentsGNOME2 LogoW3C logoRed Hat Logo
Made with Libxslt Logo

The XSLT C library for GNOME

Module documents from libxslt

API Menu
Related links
API Indexes

implements document loading and cache (multiple document() reference for the same resources must be equal.

Table of Contents

Enum xsltLoadType
Function type: xsltDocLoaderFunc
xmlDocPtr	xsltDocLoaderFunc	(const xmlChar * URI, 
xmlDictPtr dict,
int options,
void * ctxt,
xsltLoadType type)
xsltDocumentPtr	xsltFindDocument	(xsltTransformContextPtr ctxt, 
xmlDocPtr doc)
void	xsltFreeDocuments		(xsltTransformContextPtr ctxt)
void	xsltFreeStyleDocuments		(xsltStylesheetPtr style)
xsltDocumentPtr	xsltLoadDocument	(xsltTransformContextPtr ctxt, 
const xmlChar * URI)
xsltDocumentPtr	xsltLoadStyleDocument	(xsltStylesheetPtr style, 
const xmlChar * URI)
xsltDocumentPtr	xsltNewDocument		(xsltTransformContextPtr ctxt, 
xmlDocPtr doc)
xsltDocumentPtr	xsltNewStyleDocument	(xsltStylesheetPtr style, 
xmlDocPtr doc)
void	xsltSetLoaderFunc		(xsltDocLoaderFunc f)

Description

Enum xsltLoadType

Enum xsltLoadType {
    XSLT_LOAD_START = 0 : loading for a top stylesheet
    XSLT_LOAD_STYLESHEET = 1 : loading for a stylesheet include/import
    XSLT_LOAD_DOCUMENT = 2 : loading document at transformation time
}

Function type: xsltDocLoaderFunc

Function type: xsltDocLoaderFunc
xmlDocPtr	xsltDocLoaderFunc	(const xmlChar * URI, 
xmlDictPtr dict,
int options,
void * ctxt,
xsltLoadType type)

An xsltDocLoaderFunc is a signature for a function which can be registered to load document not provided by the compilation or transformation API themselve, for example when an xsl:import, xsl:include is found at compilation time or when a document() call is made at runtime.

URI:the URI of the document to load
dict:the dictionary to use when parsing that document
options:parsing options, a set of xmlParserOption
ctxt:the context, either a stylesheet or a transformation context
type:the xsltLoadType indicating the kind of loading required
Returns:the pointer to the document (which will be modified and freed by the engine later), or NULL in case of error.

Function: xsltFindDocument

xsltDocumentPtr	xsltFindDocument	(xsltTransformContextPtr ctxt, 
xmlDocPtr doc)

Try to find a document within the XSLT transformation context. This will not find document infos for temporary Result Tree Fragments.

ctxt:an XSLT transformation context
doc:a parsed XML document
Returns:the desired xsltDocumentPtr or NULL in case of error

Function: xsltFreeDocuments

void	xsltFreeDocuments		(xsltTransformContextPtr ctxt)

Free up all the space used by the loaded documents

ctxt:an XSLT transformation context

Function: xsltFreeStyleDocuments

void	xsltFreeStyleDocuments		(xsltStylesheetPtr style)

Frees the node-trees (and xsltDocument structures) of all stylesheet-modules of the stylesheet-level represented by the given @style.

style:an XSLT stylesheet (representing a stylesheet-level)

Function: xsltLoadDocument

xsltDocumentPtr	xsltLoadDocument	(xsltTransformContextPtr ctxt, 
const xmlChar * URI)

Try to load a document (not a stylesheet) within the XSLT transformation context

ctxt:an XSLT transformation context
URI:the computed URI of the document
Returns:the new xsltDocumentPtr or NULL in case of error

Function: xsltLoadStyleDocument

xsltDocumentPtr	xsltLoadStyleDocument	(xsltStylesheetPtr style, 
const xmlChar * URI)

Try to load a stylesheet document within the XSLT transformation context

style:an XSLT style sheet
URI:the computed URI of the document
Returns:the new xsltDocumentPtr or NULL in case of error

Function: xsltNewDocument

xsltDocumentPtr	xsltNewDocument		(xsltTransformContextPtr ctxt, 
xmlDocPtr doc)

Register a new document, apply key computations

ctxt:an XSLT transformation context (or NULL)
doc:a parsed XML document
Returns:a handler to the document

Function: xsltNewStyleDocument

xsltDocumentPtr	xsltNewStyleDocument	(xsltStylesheetPtr style, 
xmlDocPtr doc)

Register a new document, apply key computations

style:an XSLT style sheet
doc:a parsed XML document
Returns:a handler to the document

Function: xsltSetLoaderFunc

void	xsltSetLoaderFunc		(xsltDocLoaderFunc f)

Set the new function to load document, if NULL it resets it to the default function.

f:the new function to handle document loading.

Daniel Veillard