Xalan-C++ API Reference
1.12.0
|
#include <xalanc/XSLT/NamespacesHandler.hpp>
Classes | |
class | Namespace |
class | NamespaceExtended |
class | PrefixChecker |
Public Types | |
typedef XalanQName::NamespaceVectorType | NamespaceVectorType |
typedef XalanQName::NamespacesStackType | NamespacesStackType |
typedef XalanVector< Namespace > | NamespacesVectorType |
typedef XalanVector< NamespaceExtended > | NamespaceExtendedVectorType |
typedef XalanVector< const XalanDOMString * > | XalanDOMStringPointerVectorType |
typedef XalanMap< const XalanDOMString *, const XalanDOMString * > | NamespaceAliasesMapType |
Public Member Functions | |
NamespacesHandler (MemoryManager &theManager) | |
Create a default, empty instance. More... | |
NamespacesHandler (StylesheetConstructionContext &theConstructionContext, const NamespacesHandler &stylesheetNamespacesHandler, const NamespacesStackType &theCurrentNamespaces, const XalanDOMString &theXSLTNamespaceURI) | |
Create an instance namespace handler using the current namespaces in effect. More... | |
~NamespacesHandler () | |
void | processExcludeResultPrefixes (StylesheetConstructionContext &theConstructionContext, const XalanDOMChar *theValue, const NamespacesStackType &theCurrentNamespaces) |
Process an exclude-result-prefixes attribute. More... | |
void | processExtensionElementPrefixes (StylesheetConstructionContext &theConstructionContext, const XalanDOMChar *theValue, const NamespacesStackType &theCurrentNamespaces) |
Process an extension-element-prefixes attribute. More... | |
void | 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. More... | |
NamespacesHandler & | operator= (const NamespacesHandler &theRHS) |
bool | shouldExcludeResultNamespaceNode (const XalanDOMString &theXSLTNamespaceURI, const XalanDOMString &theURI) const |
Determine of a given namespace should be excluded. More... | |
void | addExtensionNamespaceURI (StylesheetConstructionContext &theConstructionContext, const XalanDOMString &theURI) |
Add a URI as an extension namespace prefixes. More... | |
const XalanDOMString * | getNamespace (const XalanDOMString &thePrefix) const |
Get the namespace URI for the given prefix. More... | |
const XalanDOMString * | getNamespaceAlias (const XalanDOMString &theStylesheetNamespace) const |
Get the namespace alias URI for the given namespace. More... | |
void | setNamespaceAlias (StylesheetConstructionContext &theConstructionContext, const XalanDOMString &theStylesheetNamespace, const XalanDOMString &theResultNamespace) |
Set the namespace alias URI for the given namespace. More... | |
void | copyNamespaceAliases (const NamespacesHandler &parentNamespacesHandler) |
Copy the aliases from the given NamespacesHandler. More... | |
void | outputResultNamespaces (StylesheetExecutionContext &theExecutionContext, bool supressDefault=false) const |
Output the result tree namespace declarations. More... | |
void | clear () |
Clear out the handler. More... | |
void | swap (NamespacesHandler &theOther) |
Swap the contents of this instance with another. More... | |
NamespaceExtendedVectorType::size_type | getNamespaceDeclarationsCount () const |
Definition at line 52 of file NamespacesHandler.hpp.
typedef XalanMap<const XalanDOMString*, const XalanDOMString*> xalanc::NamespacesHandler::NamespaceAliasesMapType |
Definition at line 202 of file NamespacesHandler.hpp.
Definition at line 198 of file NamespacesHandler.hpp.
Definition at line 195 of file NamespacesHandler.hpp.
Definition at line 197 of file NamespacesHandler.hpp.
Definition at line 194 of file NamespacesHandler.hpp.
typedef XalanVector<const XalanDOMString*> xalanc::NamespacesHandler::XalanDOMStringPointerVectorType |
Definition at line 199 of file NamespacesHandler.hpp.
|
explicit |
Create a default, empty instance.
xalanc::NamespacesHandler::NamespacesHandler | ( | StylesheetConstructionContext & | theConstructionContext, |
const NamespacesHandler & | stylesheetNamespacesHandler, | ||
const NamespacesStackType & | theCurrentNamespaces, | ||
const XalanDOMString & | theXSLTNamespaceURI | ||
) |
Create an instance namespace handler using the current namespaces in effect.
theConstructionContext | The current construction context. |
stylesheetNamespacesHandler | The stylesheet's handler. |
theCurrentNamespaces | The stack of active namespace declarations. |
theXSLTNamespaceURI | The namespace URI for XSLT. |
xalanc::NamespacesHandler::~NamespacesHandler | ( | ) |
void xalanc::NamespacesHandler::addExtensionNamespaceURI | ( | StylesheetConstructionContext & | theConstructionContext, |
const XalanDOMString & | theURI | ||
) |
Add a URI as an extension namespace prefixes.
theConstructionContext | The current construction context. |
theURI | The namespace URI. |
void xalanc::NamespacesHandler::clear | ( | ) |
Clear out the handler.
void xalanc::NamespacesHandler::copyNamespaceAliases | ( | const NamespacesHandler & | parentNamespacesHandler | ) |
Copy the aliases from the given NamespacesHandler.
parentNamespacesHandler | The parent handler. |
const XalanDOMString* xalanc::NamespacesHandler::getNamespace | ( | const XalanDOMString & | thePrefix | ) | const |
Get the namespace URI for the given prefix.
thePrefix | The namespace prefix. |
const XalanDOMString* xalanc::NamespacesHandler::getNamespaceAlias | ( | const XalanDOMString & | theStylesheetNamespace | ) | const |
Get the namespace alias URI for the given namespace.
theStylesheetNamespace | The namespace as declared in the stylesheet. |
|
inline |
Definition at line 362 of file NamespacesHandler.hpp.
NamespacesHandler& xalanc::NamespacesHandler::operator= | ( | const NamespacesHandler & | theRHS | ) |
void xalanc::NamespacesHandler::outputResultNamespaces | ( | StylesheetExecutionContext & | theExecutionContext, |
bool | supressDefault = false |
||
) | const |
Output the result tree namespace declarations.
theExecutionContext | The current execution context. |
supressDefault | If true, any default namespace declaration will not be output. |
void xalanc::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.
theConstructionContext | The current construction context. |
fProcessNamespaceAliases | If true, process any namespace aliases |
theElementName | The name of the owning element. |
parentNamespacesHandler | The parent handler, if any. |
prefixChecker | A pointer to a PrefixChecker instance to use, if any. |
void xalanc::NamespacesHandler::processExcludeResultPrefixes | ( | StylesheetConstructionContext & | theConstructionContext, |
const XalanDOMChar * | theValue, | ||
const NamespacesStackType & | theCurrentNamespaces | ||
) |
Process an exclude-result-prefixes attribute.
theConstructionContext | The current construction context. |
theValue | The attribute's value. |
theCurrentNamespaces | The stack of active namespace declarations. |
void xalanc::NamespacesHandler::processExtensionElementPrefixes | ( | StylesheetConstructionContext & | theConstructionContext, |
const XalanDOMChar * | theValue, | ||
const NamespacesStackType & | theCurrentNamespaces | ||
) |
Process an extension-element-prefixes attribute.
theConstructionContext | The current construction context. |
theValue | The attribute's value. |
theCurrentNamespaces | The stack of active namespace declarations. |
void xalanc::NamespacesHandler::setNamespaceAlias | ( | StylesheetConstructionContext & | theConstructionContext, |
const XalanDOMString & | theStylesheetNamespace, | ||
const XalanDOMString & | theResultNamespace | ||
) |
Set the namespace alias URI for the given namespace.
theConstructionContext | The current construction context. |
theStylesheetNamespace | The namespace as declared in the stylesheet. |
theResultNamespace | The namespace as it should appear in the result tree. |
bool xalanc::NamespacesHandler::shouldExcludeResultNamespaceNode | ( | const XalanDOMString & | theXSLTNamespaceURI, |
const XalanDOMString & | theURI | ||
) | const |
Determine of a given namespace should be excluded.
theXSLTNamespaceURI | The namespace URI for XSLT. |
theURI | The namespace URI. |
void xalanc::NamespacesHandler::swap | ( | NamespacesHandler & | theOther | ) |
Swap the contents of this instance with another.
theOther | The other instance. |
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:32 for Xalan-C++ API Reference by 1.8.17