Module namespaces from libxslt

# The XSLT C library for Gnome ## Module namespaces from libxslt

API Menu
Main Menu Developer Menu API Menu ChangeLog
Related links
Mail archive XML libxml DOM gdome2 FTP Windows binaries Solaris binaries MacOsX binaries Pascal bindings Bug Tracker Xsldbg Debugger Apache module
API Indexes
Alphabetic Constructors Functions/Types Modules Symbols
set of function easing the processing and generation of namespace nodes in XSLT. ## Table of Contents
    #define UNDEFINED_DEFAULT_NS
    xmlNsPtr	xsltCopyNamespace	(xsltTransformContextPtr ctxt,
    					 xmlNodePtr node,
    					 xmlNsPtr cur)
    xmlNsPtr	xsltCopyNamespaceList	(xsltTransformContextPtr ctxt,
    					 xmlNodePtr node,
    					 xmlNsPtr cur)
    void	xsltFreeNamespaceAliasHashes	(xsltStylesheetPtr style)
    xmlNsPtr	xsltGetNamespace	(xsltTransformContextPtr ctxt,
    					 xmlNodePtr cur,
    					 xmlNsPtr ns,
    					 xmlNodePtr out)
    xmlNsPtr	xsltGetPlainNamespace	(xsltTransformContextPtr ctxt,
    					 xmlNodePtr cur,
    					 xmlNsPtr ns,
    					 xmlNodePtr out)
    xmlNsPtr	xsltGetSpecialNamespace	(xsltTransformContextPtr ctxt,
    					 xmlNodePtr cur,
    					 const xmlChar * URI,
    					 const xmlChar * prefix,
    					 xmlNodePtr out)
    void	xsltNamespaceAlias		(xsltStylesheetPtr style,
    					 xmlNodePtr node)
## Description ### Macro: UNDEFINED_DEFAULT_NS
    #define UNDEFINED_DEFAULT_NS
### Function: xsltCopyNamespace
    xmlNsPtr	xsltCopyNamespace	(xsltTransformContextPtr ctxt,
    					 xmlNodePtr node,
    					 xmlNsPtr cur)
Do a copy of an namespace node. If @node is non-NULL the new namespaces are added automatically. This handles namespaces aliases
`ctxt`: | a transformation context
`node`: | the target node
`cur`: | the namespace node
`Returns`: | a new xmlNsPtr, or NULL in case of error.
### Function: xsltCopyNamespaceList
    xmlNsPtr	xsltCopyNamespaceList	(xsltTransformContextPtr ctxt,
    					 xmlNodePtr node,
    					 xmlNsPtr cur)
Do a copy of an namespace list. If @node is non-NULL the new namespaces are added automatically. This handles namespaces aliases
`ctxt`: | a transformation context
`node`: | the target node
`cur`: | the first namespace
`Returns`: | a new xmlNsPtr, or NULL in case of error.
### Function: xsltFreeNamespaceAliasHashes
    void	xsltFreeNamespaceAliasHashes	(xsltStylesheetPtr style)
Free up the memory used by namespaces aliases
`style`: | an XSLT stylesheet
### Function: xsltGetNamespace
    xmlNsPtr	xsltGetNamespace	(xsltTransformContextPtr ctxt,
    					 xmlNodePtr cur,
    					 xmlNsPtr ns,
    					 xmlNodePtr out)
Find the right namespace value for this prefix, if needed create and add a new namespace decalaration on the node Handle namespace aliases
`ctxt`: | a transformation context
`cur`: | the input node
`ns`: | the namespace
`out`: | the output node (or its parent)
`Returns`: | the namespace node to use or NULL
### Function: xsltGetPlainNamespace
    xmlNsPtr	xsltGetPlainNamespace	(xsltTransformContextPtr ctxt,
    					 xmlNodePtr cur,
    					 xmlNsPtr ns,
    					 xmlNodePtr out)
Find the right namespace value for this prefix, if needed create and add a new namespace decalaration on the node Handle namespace aliases and make sure the prefix is not NULL, this is needed for attributes.
`ctxt`: | a transformation context
`cur`: | the input node
`ns`: | the namespace
`out`: | the output node (or its parent)
`Returns`: | the namespace node to use or NULL
### Function: xsltGetSpecialNamespace
    xmlNsPtr	xsltGetSpecialNamespace	(xsltTransformContextPtr ctxt,
    					 xmlNodePtr cur,
    					 const xmlChar * URI,
    					 const xmlChar * prefix,
    					 xmlNodePtr out)
Find the right namespace value for this URI, if needed create and add a new namespace decalaration on the node
`ctxt`: | a transformation context
`cur`: | the input node
`URI`: | the namespace URI
`prefix`: | the suggested prefix
`out`: | the output node (or its parent)
`Returns`: | the namespace node to use or NULL
### Function: xsltNamespaceAlias
    void	xsltNamespaceAlias		(xsltStylesheetPtr style,
    					 xmlNodePtr node)
Read the stylesheet-prefix and result-prefix attributes, register them as well as the corresponding namespace.
`style`: | the XSLT stylesheet
`node`: | the xsl:namespace-alias node
Daniel Veillard