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  

XPathSupport Class Reference

#include <XPathSupport.hpp>

Inheritance diagram for XPathSupport:

Resettable XPathSupportDefault Collaboration diagram for XPathSupport:

List of all members.

Public Methods


Detailed Description


Constructor & Destructor Documentation

XPathSupport::XPathSupport ()

virtual XPathSupport::~XPathSupport () [virtual]


Member Function Documentation

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

Given a valid element id, return the corresponding element.

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

Reimplemented in XPathSupportDefault.

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

Retrieve local name of node.

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

Reimplemented in XPathSupportDefault.

XalanDOMString XPathSupport::getNameOfNode ( const XalanNode & n) const [pure 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 in XPathSupportDefault.

XalanDOMString XPathSupport::getNamespaceForPrefix ( const XalanDOMString & prefix,
const XalanElement & namespaceContext) const [pure 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 in XPathSupportDefault.

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

Returns the namespace of the given node.

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

Reimplemented in XPathSupportDefault.

XalanDOMString XPathSupport::getNodeData ( const XalanNode & n) const [pure 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 in XPathSupportDefault.

XalanNode * XPathSupport::getParentOfNode ( const XalanNode & node) const [pure 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 in XPathSupportDefault.

bool XPathSupport::getProcessNamespaces () const [pure virtual]

Tells if namespaces should be supported.

For optimization purposes.

Returns:
true if namespaces processed

Reimplemented in XPathSupportDefault.

XalanDOMString XPathSupport::getUnparsedEntityURI ( const XalanDOMString & theName,
const XalanDocument & theDocument) const [pure 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 in XPathSupportDefault.

bool XPathSupport::isIgnorableWhitespace ( const XalanText & node) const [pure 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 in XPathSupportDefault.

bool XPathSupport::isNodeAfter ( const XalanNode & node1,
const XalanNode & node2) const [pure 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 in XPathSupportDefault.

virtual void XPathSupport::reset () [pure virtual]

Reset the instance.

Reimplemented from Resettable.

Reimplemented in XPathSupportDefault.

void XPathSupport::setProcessNamespaces ( bool processNamespaces) [pure virtual]

Set whether or not the liaison attempts to expand namespaces.

Used for optimization.

Parameters:
processNamespaces   true to process namespaces

Reimplemented in XPathSupportDefault.


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.