Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Public Types | Static Public Member Functions | Static Public Attributes | List of all members
DOMServices Class Reference

Public Types

typedef void(FormatterListener::* MemberFunctionPtr )(const XMLCh *const, const unsigned int)
 

Static Public Member Functions

static void initialize (MemoryManagerType &theManager)
 Initialize static data. More...
 
static void terminate ()
 Destroy static data. More...
 
static void getNodeData (const XalanNode &node, XalanDOMString &data)
 Retrieves data for node. More...
 
static void getNodeData (const XalanAttr &attribute, XalanDOMString &data)
 Retrieves data for node. More...
 
static void getNodeData (const XalanComment &comment, XalanDOMString &data)
 Retrieves data for node. More...
 
static void getNodeData (const XalanDocument &document, XalanDOMString &data)
 Retrieves data for node. More...
 
static void getNodeData (const XalanDocumentFragment &documentFragment, XalanDOMString &data)
 Retrieves data for node. More...
 
static void getNodeData (const XalanElement &element, XalanDOMString &data)
 Retrieves data for node. More...
 
static void getNodeData (const XalanProcessingInstruction &pi, XalanDOMString &data)
 Retrieves data for node. More...
 
static void getNodeData (const XalanText &text, XalanDOMString &data)
 Retrieves data for node. More...
 
static void getNodeData (const XalanNode &node, FormatterListener &formatterListener, MemberFunctionPtr function)
 Sends the data for a node to a FormatterListener. More...
 
static void getNodeData (const XalanAttr &attribute, FormatterListener &formatterListener, MemberFunctionPtr function)
 Sends the data for a node to a FormatterListener. More...
 
static void getNodeData (const XalanComment &comment, FormatterListener &formatterListener, MemberFunctionPtr function)
 Sends the data for a node to a FormatterListener. More...
 
static void getNodeData (const XalanDocument &document, FormatterListener &formatterListener, MemberFunctionPtr function)
 Sends the data for a node to a FormatterListener. More...
 
static void getNodeData (const XalanDocumentFragment &documentFragment, FormatterListener &formatterListener, MemberFunctionPtr function)
 Sends the data for a node to a FormatterListener. More...
 
static void getNodeData (const XalanElement &element, FormatterListener &formatterListener, MemberFunctionPtr function)
 Sends the data for a node to a FormatterListener. More...
 
static void getNodeData (const XalanProcessingInstruction &pi, FormatterListener &formatterListener, MemberFunctionPtr function)
 Sends the data for a node to a FormatterListener. More...
 
static void getNodeData (const XalanText &text, FormatterListener &formatterListener, MemberFunctionPtr function)
 Sends the data for a node to a FormatterListener. More...
 
static const XalanDOMString & getNameOfNode (const XalanNode &n)
 Retrieve the name of the node, taking into account the differences between the DOM and XSLT data models. More...
 
static const XalanDOMString & getNameOfNode (const XalanAttr &attr)
 Retrieve the name of the node, taking into account the differences between the DOM and XSLT data models. More...
 
static const XalanDOMString & getNameOfNode (const XalanElement &element)
 Retrieve the name of the node, taking into account the differences between the DOM and XSLT data models. More...
 
static const XalanDOMString & getLocalNameOfNode (const XalanNode &n)
 Retrieve local name of node, taking into account the differences between the DOM and XSLT data models. More...
 
static const XalanDOMString & getNamespaceOfNode (const XalanNode &n)
 Retrieve the namespace of the node, taking into account the differences between the DOM and XSLT data models. More...
 
static bool isNamespaceDeclaration (const XalanAttr &n)
 Determine whether or not an attribute node is declaring a namespace. More...
 
static XalanNode * getParentOfNode (const XalanNode &node)
 Retrieve the parent of a node. More...
 
static const XalanDOMString * getNamespaceForPrefix (const XalanDOMString &prefix, const XalanElement &namespaceContext)
 Retrieve the URI corresponding to a namespace prefix. More...
 
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. More...
 
static bool isNodeAfter (const XalanNode &node1, const XalanNode &node2)
 Determine if a node is after another node, in document order. More...
 
static bool isNodeAfterSibling (const XalanNode &parent, const XalanNode &child1, const XalanNode &child2)
 Determine if a node is after another node in the sibling list. More...
 

Static Public Attributes

static const XalanDOMString & s_XMLString
 
static const XalanDOMString & s_XMLStringWithSeparator
 
static const XalanDOMString & s_XMLNamespacePrefix
 
static const XalanDOMString & s_XMLNamespaceURI
 
static const XalanDOMString & s_XMLNamespace
 
static const XalanDOMString & s_XMLNamespaceWithSeparator
 
static const XalanDOMString & s_XMLNamespaceSeparatorString
 
static const XalanDOMString & s_XMLNamespacePrefixURI
 
static const
XalanDOMString::size_type & 
s_XMLStringLength
 
static const
XalanDOMString::size_type & 
s_XMLStringWithSeparatorLength
 
static const
XalanDOMString::size_type & 
s_XMLNamespacePrefixLength
 
static const
XalanDOMString::size_type & 
s_XMLNamespaceURILength
 
static const
XalanDOMString::size_type & 
s_XMLNamespaceLength
 
static const
XalanDOMString::size_type & 
s_XMLNamespaceWithSeparatorLength
 
static const
XalanDOMString::size_type & 
s_XMLNamespaceSeparatorStringLength
 
static const
XalanDOMString::size_type & 
s_XMLNamespacePrefixURILength
 
static const XalanDOMString s_emptyString
 

Member Typedef Documentation

typedef void(FormatterListener::* DOMServices::MemberFunctionPtr)(const XMLCh *const, const unsigned int)

Member Function Documentation

static const XalanDOMString& DOMServices::getLocalNameOfNode ( const XalanNode &  n)
static

Retrieve local name of node, taking into account the differences between the DOM and XSLT data models.

Parameters
nodeDOM node whose name is returned
Returns
name of node without namespace
static const XalanDOMString& DOMServices::getNameOfNode ( const XalanNode &  n)
static

Retrieve the name of the node, taking into account the differences between the DOM and XSLT data models.

Parameters
nodeDOM node whose name is returned
Returns
name of the node
static const XalanDOMString& DOMServices::getNameOfNode ( const XalanAttr &  attr)
static

Retrieve the name of the node, taking into account the differences between the DOM and XSLT data models.

Parameters
attrDOM attribute node whose name is returned
Returns
name of the node
static const XalanDOMString& DOMServices::getNameOfNode ( const XalanElement &  element)
static

Retrieve the name of the node, taking into account the differences between the DOM and XSLT data models.

Parameters
attrDOM element node whose name is returned
Returns
name of the node
static const XalanDOMString* DOMServices::getNamespaceForPrefix ( const XalanDOMString &  prefix,
const XalanElement &  namespaceContext 
)
static

Retrieve the URI corresponding to a namespace prefix.

Parameters
prefixprefix for a namespace
namespaceContextDOM element representing the context for namespace
Returns
URI corresponding to namespace
static const XalanDOMString* DOMServices::getNamespaceForPrefix ( const XalanDOMChar *  theName,
const PrefixResolver &  thePrefixResolver,
bool  isAttribute,
XalanDOMString &  thePrefix 
)
static

Retrieve the URI corresponding to a namespace prefix, using the supplied name, and PrefixResolver.

The routine also returns the prefix.

Parameters
theNameThe name that contains the prefix
thePrefixResolverThe PrefixResolver to use
isAttributeIf true, special rules for attributes are used
thePrefixThe prefix
Returns
URI corresponding to namespace
static const XalanDOMString& DOMServices::getNamespaceOfNode ( const XalanNode &  n)
static

Retrieve the namespace of the node, taking into account the differences between the DOM and XSLT data models.

Parameters
nodeDOM node whose namespace is returned
Returns
namespace of the node
static void DOMServices::getNodeData ( const XalanNode &  node,
XalanDOMString &  data 
)
static

Retrieves data for node.

Parameters
nodeDOM node whose data is to be returned
dataa string to which the node's data will be appended
static void DOMServices::getNodeData ( const XalanAttr &  attribute,
XalanDOMString &  data 
)
static

Retrieves data for node.

Parameters
attributeDOM node whose data is to be returned
dataa string to which the node's data will be appended
static void DOMServices::getNodeData ( const XalanComment &  comment,
XalanDOMString &  data 
)
static

Retrieves data for node.

Parameters
commentDOM node whose data is to be returned
dataa string to which the node's data will be appended
static void DOMServices::getNodeData ( const XalanDocument &  document,
XalanDOMString &  data 
)
static

Retrieves data for node.

Parameters
documentDOM node whose data is to be returned
dataa string to which the node's data will be appended
static void DOMServices::getNodeData ( const XalanDocumentFragment &  documentFragment,
XalanDOMString &  data 
)
static

Retrieves data for node.

Parameters
documentFragmentDOM node whose data is to be returned
dataa string to which the node's data will be appended
static void DOMServices::getNodeData ( const XalanElement &  element,
XalanDOMString &  data 
)
static

Retrieves data for node.

Parameters
elementDOM node whose data is to be returned
dataa string to which the node's data will be appended
static void DOMServices::getNodeData ( const XalanProcessingInstruction &  pi,
XalanDOMString &  data 
)
static

Retrieves data for node.

Parameters
piDOM node whose data is to be returned
dataa string to which the node's data will be appended
static void DOMServices::getNodeData ( const XalanText &  text,
XalanDOMString &  data 
)
static

Retrieves data for node.

Parameters
nodeDOM node whose data is to be returned
dataa string to which the node's data will be appended
static void DOMServices::getNodeData ( const XalanNode &  node,
FormatterListener &  formatterListener,
MemberFunctionPtr  function 
)
static

Sends the data for a node to a FormatterListener.

Parameters
nodeDOM node whose data is to be returned
formatterListenerthe FormatterListener instance to receive the data
functionA pointer to the member function of FormatterListener to call
static void DOMServices::getNodeData ( const XalanAttr &  attribute,
FormatterListener &  formatterListener,
MemberFunctionPtr  function 
)
static

Sends the data for a node to a FormatterListener.

Parameters
attributeDOM node whose data is to be returned
formatterListenerthe FormatterListener instance to receive the data
fRawWhether or not the data should be sent raw.
static void DOMServices::getNodeData ( const XalanComment &  comment,
FormatterListener &  formatterListener,
MemberFunctionPtr  function 
)
static

Sends the data for a node to a FormatterListener.

Parameters
commentDOM node whose data is to be returned
formatterListenerthe FormatterListener instance to receive the data
fRawWhether or not the data should be sent raw.
static void DOMServices::getNodeData ( const XalanDocument &  document,
FormatterListener &  formatterListener,
MemberFunctionPtr  function 
)
static

Sends the data for a node to a FormatterListener.

Parameters
documentDOM node whose data is to be returned
formatterListenerthe FormatterListener instance to receive the data
fRawWhether or not the data should be sent raw.
static void DOMServices::getNodeData ( const XalanDocumentFragment &  documentFragment,
FormatterListener &  formatterListener,
MemberFunctionPtr  function 
)
static

Sends the data for a node to a FormatterListener.

Parameters
documentFragmentDOM node whose data is to be sent
formatterListenerthe FormatterListener instance to receive the data
fRawWhether or not the data should be sent raw.
static void DOMServices::getNodeData ( const XalanElement &  element,
FormatterListener &  formatterListener,
MemberFunctionPtr  function 
)
static

Sends the data for a node to a FormatterListener.

Parameters
elementDOM node whose data is to be returned
formatterListenerthe FormatterListener instance to receive the data
fRawWhether or not the data should be sent raw.
static void DOMServices::getNodeData ( const XalanProcessingInstruction &  pi,
FormatterListener &  formatterListener,
MemberFunctionPtr  function 
)
static

Sends the data for a node to a FormatterListener.

Parameters
piDOM node whose data is to be returned
formatterListenerthe FormatterListener instance to receive the data
fRawWhether or not the data should be sent raw.
static void DOMServices::getNodeData ( const XalanText &  text,
FormatterListener &  formatterListener,
MemberFunctionPtr  function 
)
static

Sends the data for a node to a FormatterListener.

Parameters
nodeDOM node whose data is to be returned
formatterListenerthe FormatterListener instance to receive the data
fRawWhether or not the data should be sent raw.
static XalanNode* DOMServices::getParentOfNode ( const XalanNode &  node)
static

Retrieve the parent of a node.

This function has to be implemented, because the DOM WG decided that attributes don't have parents.

Parameters
nodechild node
Returns
parent node
static void DOMServices::initialize ( MemoryManagerType &  theManager)
static

Initialize static data.

Must be called before any other functions are called.

static bool DOMServices::isNamespaceDeclaration ( const XalanAttr &  n)
static

Determine whether or not an attribute node is declaring a namespace.

Parameters
nodeDOM node to check
Returns
true if the attribute is declaring a namespace, false if not.
static bool DOMServices::isNodeAfter ( const XalanNode &  node1,
const XalanNode &  node2 
)
static

Determine if a node is after another node, in document order.

Parameters
node1The first node
node2The second node
Returns
true if node1 one is after node2, or false if it is not.
static bool DOMServices::isNodeAfterSibling ( const XalanNode &  parent,
const XalanNode &  child1,
const XalanNode &  child2 
)
static

Determine if a node is after another node in the sibling list.

Parameters
parentThe parent of the nodes.
node1The first node
node2The second node
Returns
true if node1 one is after node2, or false if it is not.
static void DOMServices::terminate ( )
static

Destroy static data.

After thus function is called, no other functions can be called.

Member Data Documentation

const XalanDOMString DOMServices::s_emptyString
static
const XalanDOMString& DOMServices::s_XMLNamespace
static
const XalanDOMString::size_type& DOMServices::s_XMLNamespaceLength
static
const XalanDOMString& DOMServices::s_XMLNamespacePrefix
static
const XalanDOMString::size_type& DOMServices::s_XMLNamespacePrefixLength
static
const XalanDOMString& DOMServices::s_XMLNamespacePrefixURI
static
const XalanDOMString::size_type& DOMServices::s_XMLNamespacePrefixURILength
static
const XalanDOMString& DOMServices::s_XMLNamespaceSeparatorString
static
const XalanDOMString::size_type& DOMServices::s_XMLNamespaceSeparatorStringLength
static
const XalanDOMString& DOMServices::s_XMLNamespaceURI
static
const XalanDOMString::size_type& DOMServices::s_XMLNamespaceURILength
static
const XalanDOMString& DOMServices::s_XMLNamespaceWithSeparator
static
const XalanDOMString::size_type& DOMServices::s_XMLNamespaceWithSeparatorLength
static
const XalanDOMString& DOMServices::s_XMLString
static
const XalanDOMString::size_type& DOMServices::s_XMLStringLength
static
const XalanDOMString& DOMServices::s_XMLStringWithSeparator
static
const XalanDOMString::size_type& DOMServices::s_XMLStringWithSeparatorLength
static

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