18#if !defined(DOMSERVICES_HEADER_GUARD_1357924680)
19#define DOMSERVICES_HEADER_GUARD_1357924680
121 getNodeData(node, data);
125 doGetNodeData(node, context, data);
187 getNodeData(document, data);
191 doGetNodeData(document, context, data);
221 getNodeData(documentFragment, data);
225 doGetNodeData(documentFragment, context, data);
255 getNodeData(element, data);
259 doGetNodeData(element, context, data);
306 getNodeData(text, data);
310 doGetNodeData(text, context, data);
327 MemberFunctionPtr function);
342 MemberFunctionPtr function)
346 getNodeData(node, formatterListener, function);
350 doGetNodeData(node, context, formatterListener, function);
365 MemberFunctionPtr function)
367 sendData(formatterListener, function, attribute.
getNodeValue());
381 MemberFunctionPtr function)
383 sendData(formatterListener, function, comment.
getData());
397 MemberFunctionPtr function);
412 MemberFunctionPtr function)
416 getNodeData(document, formatterListener, function);
420 doGetNodeData(document, context, formatterListener, function);
435 MemberFunctionPtr function);
450 MemberFunctionPtr function)
454 getNodeData(documentFragment, formatterListener, function);
458 doGetNodeData(documentFragment, context, formatterListener, function);
473 MemberFunctionPtr function);
488 MemberFunctionPtr function)
492 getNodeData(element, formatterListener, function);
496 doGetNodeData(element, context, formatterListener, function);
511 MemberFunctionPtr function)
513 sendData(formatterListener, function, pi.
getData());
527 MemberFunctionPtr function)
529 sendData(formatterListener, function, text.
getData());
545 MemberFunctionPtr function)
549 getNodeData(text, formatterListener, function);
553 doGetNodeData(text, context, formatterListener, function);
581 if (
startsWith(theName, s_XMLNamespaceWithSeparator) ==
true)
586 else if (
equals(theName, s_XMLNamespace) ==
true)
588 return s_emptyString;
623 if (theLocalName.
empty() ==
false)
656 return startsWith(theName, DOMServices::s_XMLNamespaceWithSeparator) ==
true ||
657 equals(theName, DOMServices::s_XMLNamespace) ==
true;
670 if(node.
getNodeType() == XalanNode::ATTRIBUTE_NODE)
672 return static_cast<const XalanAttr&
>(node).getOwnerElement();
704 const XalanDOMChar* theName,
752 DOMServices::MemberFunctionPtr function);
837 const XalanNode& node,
838 ExecutionContext& context,
839 FormatterListener& formatterListener,
840 MemberFunctionPtr function);
852 const XalanDocument& document,
853 ExecutionContext& context,
854 FormatterListener& formatterListener,
855 MemberFunctionPtr function);
867 const XalanDocumentFragment& documentFragment,
868 ExecutionContext& context,
869 FormatterListener& formatterListener,
870 MemberFunctionPtr function);
882 const XalanElement& element,
883 ExecutionContext& context,
884 FormatterListener& formatterListener,
885 MemberFunctionPtr function);
897 const XalanText& text,
898 ExecutionContext& context,
899 FormatterListener& formatterListener,
900 MemberFunctionPtr function)
902 assert(context.hasPreserveOrStripSpaceConditions() ==
true);
904 if (context.shouldStripSourceNode(text) ==
false)
906 sendData(formatterListener, function, text.getData());
919 FormatterListener& formatterListener,
920 MemberFunctionPtr function,
921 const XalanDOMString& data)
923 const XalanDOMString::size_type theLength =
928 assert(theLength == FormatterListener::size_type(theLength));
930 (formatterListener.*function)(
932 FormatterListener::size_type(theLength));
#define XALAN_DOMSUPPORT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
static void getNodeData(const XalanElement &element, ExecutionContext &context, XalanDOMString &data)
Retrieves data for node.
static const XalanDOMString & s_XMLNamespaceSeparatorString
static const XalanDOMString::size_type & s_XMLNamespaceWithSeparatorLength
static const XalanDOMString & s_XMLString
static void getNodeData(const XalanProcessingInstruction &pi, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static void getNodeData(const XalanDocument &document, ExecutionContext &context, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
friend void getChildData(const XalanNode *child, FormatterListener &formatterListener, DOMServices::MemberFunctionPtr function)
static void initialize(MemoryManager &theManager)
Initialize static data.
static void getNodeData(const XalanDocument &document, ExecutionContext &context, XalanDOMString &data)
Retrieves data for node.
static void getNodeData(const XalanElement &element, ExecutionContext &context, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static const XalanDOMString::size_type & s_XMLNamespacePrefixURILength
static void getNodeData(const XalanDocumentFragment &documentFragment, XalanDOMString &data)
Retrieves data for node.
static XalanNode * getParentOfNode(const XalanNode &node)
Retrieve the parent of a node.
static void getNodeData(const XalanDocumentFragment &documentFragment, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static void getNodeData(const XalanAttr &attribute, XalanDOMString &data)
Retrieves data for node.
static void getNodeData(const XalanComment &comment, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static void getNodeData(const XalanText &text, ExecutionContext &context, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static void getNodeData(const XalanElement &element, XalanDOMString &data)
Retrieves data for node.
static const XalanDOMString & s_XMLNamespacePrefixURI
static bool isNodeAfter(const XalanNode &node1, const XalanNode &node2)
Determine if a node is after another node, in document order.
static const XalanDOMString::size_type & s_XMLNamespaceURILength
static const XalanDOMString * getNamespaceForPrefix(const XalanDOMString &prefix, const XalanElement &namespaceContext)
Retrieve the URI corresponding to a namespace prefix.
static void getNodeData(const XalanDocument &document, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static void terminate()
Destroy static data.
static const XalanDOMString & getNameOfNode(const XalanAttr &attr)
Retrieve the name of the node, taking into account the differences between the DOM and XSLT data mode...
static void getNodeData(const XalanNode &node, XalanDOMString &data)
Retrieves data for node.
friend void getChildData(const XalanNode *child, ExecutionContext &executionContext, XalanDOMString &data)
static void getNodeData(const XalanDocumentFragment &documentFragment, ExecutionContext &context, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static const XalanDOMString * getNamespaceForPrefix(const XalanDOMChar *theName, const PrefixResolver &thePrefixResolver, bool isAttribute, XalanDOMString &thePrefix)
Retrieve the URI corresponding to a namespace prefix, using the supplied name, and PrefixResolver.
static void getNodeData(const XalanDocumentFragment &documentFragment, ExecutionContext &context, XalanDOMString &data)
Retrieves data for node.
static const XalanDOMString::size_type & s_XMLNamespaceLength
static void getNodeData(const XalanComment &comment, XalanDOMString &data)
Retrieves data for node.
friend void getChildData(const XalanNode *child, XalanDOMString &data)
static void getNodeData(const XalanNode &node, ExecutionContext &context, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static const XalanDOMString::size_type & s_XMLStringWithSeparatorLength
static const XalanDOMString & s_XMLNamespaceURI
static const XalanDOMString & s_XMLNamespace
static void getNodeData(const XalanText &text, ExecutionContext &context, XalanDOMString &data)
Retrieves data for node.
static void getNodeData(const XalanText &text, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static const XalanDOMString s_emptyString
static bool isNodeAfterSibling(const XalanNode &parent, const XalanNode &child1, const XalanNode &child2)
Determine if a node is after another node in the sibling list.
static void getNodeData(const XalanDocument &document, XalanDOMString &data)
Retrieves data for node.
static const XalanDOMString & getNameOfNode(const XalanNode &n)
Retrieve the name of the node, taking into account the differences between the DOM and XSLT data mode...
static const XalanDOMString & s_XMLNamespacePrefix
static const XalanDOMString & s_XMLStringWithSeparator
static void getNodeData(const XalanNode &node, ExecutionContext &context, XalanDOMString &data)
Retrieves data for node.
static void getNodeData(const XalanText &text, XalanDOMString &data)
Retrieves data for node.
static void getNodeData(const XalanNode &node, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static const XalanDOMString::size_type & s_XMLNamespacePrefixLength
static void getNodeData(const XalanElement &element, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static bool isNamespaceDeclaration(const XalanAttr &n)
Determine whether or not an attribute node is declaring a namespace.
static const XalanDOMString & s_XMLNamespaceWithSeparator
static void getNodeData(const XalanProcessingInstruction &pi, XalanDOMString &data)
Retrieves data for node.
static const XalanDOMString::size_type & s_XMLNamespaceSeparatorStringLength
static const XalanDOMString::size_type & s_XMLStringLength
static const XalanDOMString & getNamespaceOfNode(const XalanNode &n)
Retrieve the namespace of the node, taking into account the differences between the DOM and XSLT data...
static const XalanDOMString & getLocalNameOfNode(const XalanNode &n)
Retrieve local name of node, taking into account the differences between the DOM and XSLT data models...
static void getNodeData(const XalanAttr &attribute, FormatterListener &formatterListener, MemberFunctionPtr function)
Sends the data for a node to a FormatterListener.
static const XalanDOMString & getNameOfNode(const XalanElement &element)
Retrieve the name of the node, taking into account the differences between the DOM and XSLT data mode...
bool hasPreserveOrStripSpaceConditions() const
virtual bool shouldStripSourceNode(const XalanText &node)=0
Determine if a text node should be stripped from the source tree, as if it weren't there.
This class defines an interface for classes that resolve namespace prefixes to their URIs.
virtual const XalanDOMString & getNodeValue() const =0
Gets the value of this node, depending on its type.
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
virtual const XalanDOMString & getNodeName() const =0
Gets the name of this node, depending on its type.
XalanDOMString & append(const XalanDOMString &theSource)
virtual const XalanDOMString & getNodeName() const =0
Gets the name of this node, depending on its type.
virtual XalanNode * getParentNode() const =0
Gets the parent of this node.
virtual const XalanDOMString & getNodeName() const =0
Gets the name of this node, depending on its type.
virtual const XalanDOMString & getLocalName() const =0
Returns the local part of the qualified name of this node.
virtual NodeType getNodeType() const =0
An enum value representing the type of the underlying object.
virtual const XalanDOMString & getData() const =0
The content of this processing instruction.
virtual const XalanDOMString & getData() const =0
Returns the character data of the node that implements this interface.
startsWith(const XalanDOMChar *theString, XalanDOMString::size_type theStringLength, const XalanDOMChar *theSubstring, XalanDOMString::size_type theSubstringLength)
Simulates the java String method startsWith().
equals(const XalanDOMChar *theLHS, const XalanDOMChar *theRHS, XalanDOMString::size_type theLength)
Compare the contents of two arrays for equality.