Xalan-C++ API Documentation

The Xalan-C++ XSL Transformer Version 1.0

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XPathSupportDefault Class Reference

#include <XPathSupportDefault.hpp>

Inheritance diagram for XPathSupportDefault:

XPathSupport Resettable Collaboration diagram for XPathSupportDefault:

List of all members.

Public Methods


Detailed Description


Constructor & Destructor Documentation

XPathSupportDefault::XPathSupportDefault ( DOMSupport & theDOMSupport)

virtual XPathSupportDefault::~XPathSupportDefault () [virtual]


Member Function Documentation

virtual XalanElement* XPathSupportDefault::getElementByID ( const XalanDOMString & id,
const XalanDocument & doc) const [virtual]

Given a valid element id, return the corresponding element.

Parameters:
id   string representing ID
doc   document to search
Returns:
element for ID

Reimplemented from XPathSupport.

virtual XalanDOMString XPathSupportDefault::getLocalNameOfNode ( const XalanNode & n) const [virtual]

Retrieve local name of node.

Parameters:
node   DOM node whose name is returned
Returns:
name of node without namespace

Reimplemented from XPathSupport.

virtual XalanDOMString XPathSupportDefault::getNameOfNode ( const XalanNode & n) const [virtual]

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

Parameters:
node   DOM node whose name is returned
Returns:
name of the node

Reimplemented from XPathSupport.

virtual XalanDOMString XPathSupportDefault::getNamespaceForPrefix ( const XalanDOMString & prefix,
const XalanElement & namespaceContext) const [virtual]

Retrieve the URI corresponding to a namespace prefix.

Parameters:
prefix   prefix for a namespace
namespaceContext   DOM element representing the context for namespace
Returns:
URI corresponding to namespace

Reimplemented from XPathSupport.

virtual XalanDOMString XPathSupportDefault::getNamespaceOfNode ( const XalanNode & n) const [virtual]

Returns the namespace of the given node.

Parameters:
node   DOM node whose namespace is returned
Returns:
namespace of node

Reimplemented from XPathSupport.

virtual XalanDOMString XPathSupportDefault::getNodeData ( const XalanNode & n) const [virtual]

Retrieves data for node recursively.

(Note whitespace issues.)

Parameters:
node   DOM node whose data is to be returned
theResolver   prefix resolver to use

Returns:
a string representation of the node's data

Reimplemented from XPathSupport.

virtual XalanNode* XPathSupportDefault::getParentOfNode ( const XalanNode & node) const [virtual]

Retrieve the parent of a node.

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

Parameters:
node   child node
Returns:
parent node

Reimplemented from XPathSupport.

virtual bool XPathSupportDefault::getProcessNamespaces () const [virtual]

Tells if namespaces should be supported.

For optimization purposes.

Returns:
true if namespaces processed

Reimplemented from XPathSupport.

virtual XalanDOMString XPathSupportDefault::getUnparsedEntityURI ( const XalanDOMString & theName,
const XalanDocument & theDocument) const [virtual]

The getUnparsedEntityURI function returns the URI of the unparsed entity with the specified name in the same document as the context node (see [3.3 Unparsed Entities]).

It returns the empty string if there is no such entity.

Parameters:
theName   name of entity
theDocument   document containing entity
Returns:
URI for the entity

Reimplemented from XPathSupport.

virtual bool XPathSupportDefault::isIgnorableWhitespace ( const XalanText & node) const [virtual]

Tell if the node is ignorable whitespace.

This should be in the DOM. Return false if the parser doesn't handle this.

Parameters:
node   text node queried
Returns:
true if white space can be ignored

Reimplemented from XPathSupport.

virtual bool XPathSupportDefault::isNodeAfter ( const XalanNode & node1,
const XalanNode & node2) const [virtual]

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

Parameters:
node1   The first node
node2   The second node
Returns:
true if node1 one is after node2, or false if it is not.

Reimplemented from XPathSupport.

virtual void XPathSupportDefault::reset () [virtual]

Reset the instance.

Reimplemented from XPathSupport.

virtual void XPathSupportDefault::setProcessNamespaces ( bool processNamespaces) [virtual]

Set whether or not the liaison attempts to expand namespaces.

Used for optimization.

Parameters:
processNamespaces   true to process namespaces

Reimplemented from XPathSupport.


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.

Xalan-C++ XSL Transformer Version 1.0
Copyright © 2000 The Apache Software Foundation. All Rights Reserved.