19 #if !defined(XALAN_NAMESPACESHANDLER_HEADER_GUARD)
20 #define XALAN_NAMESPACESHANDLER_HEADER_GUARD
43 XALAN_CPP_NAMESPACE_BEGIN
75 m_prefix(&s_emptyString),
96 assert(m_prefix != 0);
153 m_resultAttributeName(&s_emptyString)
161 m_resultAttributeName(&s_emptyString)
173 assert(m_resultAttributeName != 0);
175 return *m_resultAttributeName;
186 m_resultAttributeName = &name;
223 const NamespacesStackType& theCurrentNamespaces,
224 const XalanDOMString& theXSLTNamespaceURI);
238 const XalanDOMChar* theValue,
239 const NamespacesStackType& theCurrentNamespaces);
251 const XalanDOMChar* theValue,
252 const NamespacesStackType& theCurrentNamespaces);
266 bool fProcessNamespaceAliases =
true,
283 const XalanDOMString& theXSLTNamespaceURI,
284 const XalanDOMString& theURI)
const;
295 const XalanDOMString& theURI);
303 const XalanDOMString*
312 const XalanDOMString*
325 const XalanDOMString& theStylesheetNamespace,
326 const XalanDOMString& theResultNamespace);
345 bool supressDefault =
false)
const;
364 return m_namespaceDeclarations.size();
387 const XalanDOMString& theElementPrefix,
388 const PrefixChecker* prefixChecker);
394 processNamespaceAliases();
410 copyExtensionNamespaceURIs(
const XalanDOMStringPointerVectorType& theExtensionNamespaceURIs);
418 copyExcludeResultPrefixes(
const NamespacesVectorType& theExcludeResultPrefixes);
428 isExcludedNamespaceURI(
const XalanDOMString& theNamespaceURI)
const;
437 isExtensionNamespaceURI(
const XalanDOMString& theNamespaceURI)
const
439 return findString(theNamespaceURI, m_extensionNamespaceURIs);
450 const XalanDOMString& theString,
451 const XalanDOMStringPointerVectorType& theVector);
460 NamespacesVectorType m_excludedResultPrefixes;
462 NamespaceExtendedVectorType m_namespaceDeclarations;
464 XalanDOMStringPointerVectorType m_extensionNamespaceURIs;
466 NamespaceAliasesMapType m_namespaceAliases;
471 XALAN_CPP_NAMESPACE_END
475 #endif // XALAN_NAMESPACESHANDLER_HEADER_GUARD
void outputResultNamespaces(StylesheetExecutionContext &theExecutionContext, bool supressDefault=false) const
Output the result tree namespace declarations.
XalanVector< const XalanDOMString * > XalanDOMStringPointerVectorType
NamespaceExtended(const XalanDOMString &prefix, const XalanDOMString &uri)
void setURI(const XalanDOMString &uri)
Set the URI for namespace.
void swap(NamespacesHandler &theOther)
Swap the contents of this instance with another.
void setResultAttributeName(const XalanDOMString &name)
Set the name of the result attribute.
Namespace(const XalanDOMString &prefix, const XalanDOMString &uri)
NamespacesHandler(MemoryManager &theManager)
Create a default, empty instance.
void processExcludeResultPrefixes(StylesheetConstructionContext &theConstructionContext, const XalanDOMChar *theValue, const NamespacesStackType &theCurrentNamespaces)
Process an exclude-result-prefixes attribute.
void setPrefix(const XalanDOMString &prefix)
Set the prefix for namespace.
bool shouldExcludeResultNamespaceNode(const XalanDOMString &theXSLTNamespaceURI, const XalanDOMString &theURI) const
Determine of a given namespace should be excluded.
NamespaceExtendedVectorType::size_type getNamespaceDeclarationsCount() const
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.
static const XalanDOMString s_emptyString
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.
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
XalanMap< const XalanDOMString *, const XalanDOMString * > NamespaceAliasesMapType
#define XALAN_XSLT_EXPORT
bool operator==(const ElemAttributeSet &theLHS, const ElemAttributeSet &theRHS)
XalanVector< Namespace > NamespacesVectorType
Xalan implementation of a hashtable.
const XalanDOMString & getPrefix() const
Retrieve the prefix for namespace.
const XalanDOMString & getResultAttributeName() const
Retrieve the name of the result attribute.
XalanQName::NamespacesStackType NamespacesStackType
XalanQName::NamespaceVectorType NamespaceVectorType
Xalan implementation of deque.