Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Classes | Public Types | Public Member Functions
NamespacesHandler Class Reference

List of all members.

Classes

Public Types

Public Member Functions


Member Typedef Documentation


Constructor & Destructor Documentation

NamespacesHandler::NamespacesHandler ( MemoryManagerType &  theManager) [explicit]

Create a default, empty instance.

NamespacesHandler::NamespacesHandler ( StylesheetConstructionContext &  theConstructionContext,
const NamespacesHandler &  stylesheetNamespacesHandler,
const NamespacesStackType &  theCurrentNamespaces,
const XalanDOMString &  theXSLTNamespaceURI 
)

Create an instance namespace handler using the current namespaces in effect.

Parameters:
theConstructionContextThe current construction context.
stylesheetNamespacesHandlerThe stylesheet's handler.
theCurrentNamespacesThe stack of active namespace declarations.
theXSLTNamespaceURIThe namespace URI for XSLT.
NamespacesHandler::~NamespacesHandler ( )

Member Function Documentation

void NamespacesHandler::addExtensionNamespaceURI ( StylesheetConstructionContext &  theConstructionContext,
const XalanDOMString &  theURI 
)

Add a URI as an extension namespace prefixes.

Parameters:
theConstructionContextThe current construction context.
theURIThe namespace URI.
void NamespacesHandler::clear ( )

Clear out the handler.

void NamespacesHandler::copyNamespaceAliases ( const NamespacesHandler &  parentNamespacesHandler)

Copy the aliases from the given NamespacesHandler.

Parameters:
parentNamespacesHandlerThe parent handler.
const XalanDOMString* NamespacesHandler::getNamespace ( const XalanDOMString &  thePrefix) const

Get the namespace URI for the given prefix.

Parameters:
thePrefixThe namespace prefix.
Returns:
The namespace URI
const XalanDOMString* NamespacesHandler::getNamespaceAlias ( const XalanDOMString &  theStylesheetNamespace) const

Get the namespace alias URI for the given namespace.

Parameters:
theStylesheetNamespaceThe namespace as declared in the stylesheet.
Returns:
The namespace alias URI
NamespaceExtendedVectorType::size_type NamespacesHandler::getNamespaceDeclarationsCount ( ) const
NamespacesHandler& NamespacesHandler::operator= ( const NamespacesHandler &  theRHS)
void NamespacesHandler::outputResultNamespaces ( StylesheetExecutionContext &  theExecutionContext,
bool  supressDefault = false 
) const

Output the result tree namespace declarations.

Parameters:
theExecutionContextThe current execution context.
supressDefaultIf true, any default namespace declaration will not be output.
void NamespacesHandler::postConstruction ( StylesheetConstructionContext &  theConstructionContext,
bool  fProcessNamespaceAliases = true,
const XalanDOMString &  theElementName = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const NamespacesHandler *  parentNamespacesHandler = 0,
const PrefixChecker *  prefixChecker = 0 
)

Notify the instance that the stylesheet is fully constructed.

Parameters:
theConstructionContextThe current construction context.
fProcessNamespaceAliasesIf true, process any namespace aliases
theElementNameThe name of the owning element.
parentNamespacesHandlerThe parent handler, if any.
prefixCheckerA pointer to a PrefixChecker instance to use, if any.
void NamespacesHandler::processExcludeResultPrefixes ( StylesheetConstructionContext &  theConstructionContext,
const XalanDOMChar *  theValue,
const NamespacesStackType &  theCurrentNamespaces 
)

Process an exclude-result-prefixes attribute.

Parameters:
theConstructionContextThe current construction context.
theValueThe attribute's value.
theCurrentNamespacesThe stack of active namespace declarations.
void NamespacesHandler::processExtensionElementPrefixes ( StylesheetConstructionContext &  theConstructionContext,
const XalanDOMChar *  theValue,
const NamespacesStackType &  theCurrentNamespaces 
)

Process an extension-element-prefixes attribute.

Parameters:
theConstructionContextThe current construction context.
theValueThe attribute's value.
theCurrentNamespacesThe stack of active namespace declarations.
void NamespacesHandler::setNamespaceAlias ( StylesheetConstructionContext &  theConstructionContext,
const XalanDOMString &  theStylesheetNamespace,
const XalanDOMString &  theResultNamespace 
)

Set the namespace alias URI for the given namespace.

Parameters:
theConstructionContextThe current construction context.
theStylesheetNamespaceThe namespace as declared in the stylesheet.
theResultNamespaceThe namespace as it should appear in the result tree.
bool NamespacesHandler::shouldExcludeResultNamespaceNode ( const XalanDOMString &  theXSLTNamespaceURI,
const XalanDOMString &  theURI 
) const

Determine of a given namespace should be excluded.

Parameters:
theXSLTNamespaceURIThe namespace URI for XSLT.
theURIThe namespace URI.
Returns:
true of the namespace should be excluded, false if not.
void NamespacesHandler::swap ( NamespacesHandler &  theOther)

Swap the contents of this instance with another.

Parameters:
theOtherThe other instance.

The documentation for this class was generated from the following file:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo