|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include "precomp.h"
Go to the source code of this file.
Functions | |
| void | xsltNamespaceAlias (xsltStylesheetPtr style, xmlNodePtr node) |
| xmlNsPtr | xsltGetSpecialNamespace (xsltTransformContextPtr ctxt, xmlNodePtr invocNode, const xmlChar *nsName, const xmlChar *nsPrefix, xmlNodePtr target) |
| xmlNsPtr | xsltGetNamespace (xsltTransformContextPtr ctxt, xmlNodePtr cur, xmlNsPtr ns, xmlNodePtr out) |
| xmlNsPtr | xsltGetPlainNamespace (xsltTransformContextPtr ctxt, xmlNodePtr cur, xmlNsPtr ns, xmlNodePtr out) |
| xmlNsPtr | xsltCopyNamespaceList (xsltTransformContextPtr ctxt, xmlNodePtr node, xmlNsPtr cur) |
| xmlNsPtr | xsltCopyNamespace (xsltTransformContextPtr ctxt ATTRIBUTE_UNUSED, xmlNodePtr elem, xmlNsPtr ns) |
| void | xsltFreeNamespaceAliasHashes (xsltStylesheetPtr style) |
| xmlNsPtr xsltCopyNamespace | ( | xsltTransformContextPtr ctxt | ATTRIBUTE_UNUSED, |
| xmlNodePtr | elem, | ||
| xmlNsPtr | ns | ||
| ) |
xsltCopyNamespace: @ctxt: a transformation context @elem: the target element node @ns: the namespace node
Copies a namespace node (declaration). If @elem is not NULL, then the new namespace will be declared on @elem.
Returns: a new xmlNsPtr, or NULL in case of an error.
Definition at line 789 of file namespaces.c.
| xmlNsPtr xsltCopyNamespaceList | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | node, | ||
| xmlNsPtr | cur | ||
| ) |
xsltCopyNamespaceList: @ctxt: a transformation context @node: the target node @cur: the first namespace
Do a copy of an namespace list. If @node is non-NULL the new namespaces are added automatically. This handles namespaces aliases. This function is intended only for internal use at transformation-time for copying ns-declarations of Literal Result Elements.
Called by: xsltCopyTreeInternal() (transform.c) xsltShallowCopyElem() (transform.c)
REVISIT: This function won't be used in the refactored code.
Returns: a new xmlNsPtr, or NULL in case of error.
Definition at line 697 of file namespaces.c.
Referenced by xsltCopyTree(), and xsltShallowCopyElem().
| void xsltFreeNamespaceAliasHashes | ( | xsltStylesheetPtr | style | ) |
xsltFreeNamespaceAliasHashes: @style: an XSLT stylesheet
Free up the memory used by namespaces aliases
Definition at line 811 of file namespaces.c.
Referenced by xsltFreeStylesheet().
| xmlNsPtr xsltGetNamespace | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | cur, | ||
| xmlNsPtr | ns, | ||
| xmlNodePtr | out | ||
| ) |
xsltGetNamespace: @ctxt: a transformation context @cur: the input node @ns: the namespace @out: the output node (or its parent)
Find a matching (prefix and ns-name) ns-declaration for the requested @ns->prefix and @ns->href in the result tree. If none is found then a new ns-declaration will be added to @resultElem. If, in this case, the given prefix is already in use, then a ns-declaration with a modified ns-prefix be we created.
Called by:
Returns a namespace declaration or NULL in case of namespace fixup failures or API or internal errors.
Definition at line 596 of file namespaces.c.
Referenced by xsltApplySequenceConstructor(), xsltAttrListTemplateProcess(), xsltAttrTemplateProcess(), xsltGetPlainNamespace(), and xsltShallowCopyElem().
| xmlNsPtr xsltGetPlainNamespace | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | cur, | ||
| xmlNsPtr | ns, | ||
| xmlNodePtr | out | ||
| ) |
xsltGetPlainNamespace: @ctxt: a transformation context @cur: the input node @ns: the namespace @out: the result element
Obsolete. Not called by any Libxslt/Libexslt function. Exaclty the same as xsltGetNamespace().
Returns a namespace declaration or NULL in case of namespace fixup failures or API or internal errors.
Definition at line 669 of file namespaces.c.
| xmlNsPtr xsltGetSpecialNamespace | ( | xsltTransformContextPtr | ctxt, |
| xmlNodePtr | invocNode, | ||
| const xmlChar * | nsName, | ||
| const xmlChar * | nsPrefix, | ||
| xmlNodePtr | target | ||
| ) |
xsltGetSpecialNamespace: @ctxt: the transformation context @invocNode: the invoking node; e.g. a literal result element/attr; only used for error reports @nsName: the namespace name (or NULL) @nsPrefix: the suggested namespace prefix (or NULL) @target: the result element on which to anchor a namespace
Find a matching (prefix and ns-name) ns-declaration for the requested @nsName and @nsPrefix in the result tree. If none is found then a new ns-declaration will be added to @resultElem. If, in this case, the given prefix is already in use, then a ns-declaration with a modified ns-prefix be we created. Note that this function's priority is to preserve ns-prefixes; it will only change a prefix if there's a namespace clash. If both @nsName and @nsPrefix are NULL, then this will try to "undeclare" a default namespace by declaring an xmlns="".
Returns a namespace declaration or NULL.
Definition at line 299 of file namespaces.c.
Referenced by xsltApplySequenceConstructor(), xsltAttribute(), xsltAttrListTemplateProcess(), xsltCopyAttrListNoOverwrite(), xsltCopyTree(), xsltElement(), xsltGetNamespace(), xsltShallowCopyAttr(), and xsltShallowCopyElem().
| void xsltNamespaceAlias | ( | xsltStylesheetPtr | style, |
| xmlNodePtr | node | ||
| ) |
xsltNamespaceAlias: @style: the XSLT stylesheet @node: the xsl:namespace-alias node
Read the stylesheet-prefix and result-prefix attributes, register them as well as the corresponding namespace.
Definition at line 55 of file namespaces.c.
Referenced by xsltParseStylesheetTop().