17 #if !defined(XALAN_NAMESPACESHANDLER_HEADER_GUARD)
18 #define XALAN_NAMESPACESHANDLER_HEADER_GUARD
41 XALAN_CPP_NAMESPACE_BEGIN
73 m_prefix(&s_emptyString),
94 assert(m_prefix != 0);
151 m_resultAttributeName(&s_emptyString)
159 m_resultAttributeName(&s_emptyString)
171 assert(m_resultAttributeName != 0);
173 return *m_resultAttributeName;
184 m_resultAttributeName = &name;
236 const XalanDOMChar* theValue,
249 const XalanDOMChar* theValue,
264 bool fProcessNamespaceAliases =
true,
343 bool supressDefault =
false)
const;
362 return m_namespaceDeclarations.size();
386 const PrefixChecker* prefixChecker);
392 processNamespaceAliases();
408 copyExtensionNamespaceURIs(
const XalanDOMStringPointerVectorType& theExtensionNamespaceURIs);
416 copyExcludeResultPrefixes(
const NamespacesVectorType& theExcludeResultPrefixes);
426 isExcludedNamespaceURI(
const XalanDOMString& theNamespaceURI)
const;
435 isExtensionNamespaceURI(
const XalanDOMString& theNamespaceURI)
const
437 return findString(theNamespaceURI, m_extensionNamespaceURIs);
449 const XalanDOMStringPointerVectorType& theVector);
458 NamespacesVectorType m_excludedResultPrefixes;
460 NamespaceExtendedVectorType m_namespaceDeclarations;
462 XalanDOMStringPointerVectorType m_extensionNamespaceURIs;
464 NamespaceAliasesMapType m_namespaceAliases;
469 XALAN_CPP_NAMESPACE_END
473 #endif // XALAN_NAMESPACESHANDLER_HEADER_GUARD
void outputResultNamespaces(StylesheetExecutionContext &theExecutionContext, bool supressDefault=false) const
Output the result tree namespace declarations.
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1111
XalanVector< const XalanDOMString * > XalanDOMStringPointerVectorType
Definition: NamespacesHandler.hpp:197
NamespaceExtended(const XalanDOMString &prefix, const XalanDOMString &uri)
Definition: NamespacesHandler.hpp:155
void setURI(const XalanDOMString &uri)
Set the URI for namespace.
Definition: NamespacesHandler.hpp:129
void swap(NamespacesHandler &theOther)
Swap the contents of this instance with another.
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
void setResultAttributeName(const XalanDOMString &name)
Set the name of the result attribute.
Definition: NamespacesHandler.hpp:182
Namespace(const XalanDOMString &prefix, const XalanDOMString &uri)
Definition: NamespacesHandler.hpp:78
Definition: NamespacesHandler.hpp:50
void processExcludeResultPrefixes(StylesheetConstructionContext &theConstructionContext, const XalanDOMChar *theValue, const NamespacesStackType &theCurrentNamespaces)
Process an exclude-result-prefixes attribute.
NamespacesHandler(MemoryManagerType &theManager)
Create a default, empty instance.
Definition: StylesheetExecutionContext.hpp:104
void setPrefix(const XalanDOMString &prefix)
Set the prefix for namespace.
Definition: NamespacesHandler.hpp:105
bool shouldExcludeResultNamespaceNode(const XalanDOMString &theXSLTNamespaceURI, const XalanDOMString &theURI) const
Determine of a given namespace should be excluded.
NamespaceExtendedVectorType::size_type getNamespaceDeclarationsCount() const
Definition: NamespacesHandler.hpp:360
void setNamespaceAlias(StylesheetConstructionContext &theConstructionContext, const XalanDOMString &theStylesheetNamespace, const XalanDOMString &theResultNamespace)
Set the namespace alias URI for the given namespace.
void copyNamespaceAliases(const NamespacesHandler &parentNamespacesHandler)
Copy the aliases from the given NamespacesHandler.
const XalanDOMString & getURI() const
Retrieve the URI for namespace.
Definition: NamespacesHandler.hpp:116
static const XalanDOMString s_emptyString
Definition: NamespacesHandler.hpp:136
void addExtensionNamespaceURI(StylesheetConstructionContext &theConstructionContext, const XalanDOMString &theURI)
Add a URI as an extension namespace prefixes.
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.
Definition: NamespacesHandler.hpp:55
NamespacesHandler & operator=(const NamespacesHandler &theRHS)
static MemoryManager & getDummyMemMgr()
const XalanDOMString * getNamespace(const XalanDOMString &thePrefix) const
Get the namespace URI for the given prefix.
const XalanDOMString * getNamespaceAlias(const XalanDOMString &theStylesheetNamespace) const
Get the namespace alias URI for the given namespace.
void processExtensionElementPrefixes(StylesheetConstructionContext &theConstructionContext, const XalanDOMChar *theValue, const NamespacesStackType &theCurrentNamespaces)
Process an extension-element-prefixes attribute.
void clear()
Clear out the handler.
XalanVector< NamespaceExtended > NamespaceExtendedVectorType
Definition: NamespacesHandler.hpp:196
size_t size_type
Definition: XalanVector.hpp:71
Definition: NamespacesHandler.hpp:145
XalanMap< const XalanDOMString *, const XalanDOMString * > NamespaceAliasesMapType
Definition: NamespacesHandler.hpp:200
#define XALAN_XSLT_EXPORT
Definition: XSLTDefinitions.hpp:25
Definition: XalanDOMString.hpp:42
Definition: StylesheetConstructionContext.hpp:73
XalanVector< Namespace > NamespacesVectorType
Definition: NamespacesHandler.hpp:195
Xalan implementation of a hashtable.
Definition: XalanMap.hpp:182
Definition: NamespacesHandler.hpp:68
Namespace()
Definition: NamespacesHandler.hpp:72
const XalanDOMString & getPrefix() const
Retrieve the prefix for namespace.
Definition: NamespacesHandler.hpp:92
const XalanDOMString & getResultAttributeName() const
Retrieve the name of the result attribute.
Definition: NamespacesHandler.hpp:169
XalanQName::NamespacesStackType NamespacesStackType
Definition: NamespacesHandler.hpp:193
XalanQName::NamespaceVectorType NamespaceVectorType
Definition: NamespacesHandler.hpp:192
NamespaceExtended()
Definition: NamespacesHandler.hpp:149
Xalan implementation of deque.
Definition: XalanDeque.hpp:160