Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.4

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

StylesheetConstructionContextDefault Class Reference

An default implementation of an abtract class which provides support for constructing the internal representation of a stylesheet. More...

#include <StylesheetConstructionContextDefault.hpp>

Inheritance diagram for StylesheetConstructionContextDefault:

StylesheetConstructionContext Collaboration diagram for StylesheetConstructionContextDefault:

List of all members.

Public Types

Public Methods


Detailed Description

An default implementation of an abtract class which provides support for constructing the internal representation of a stylesheet.


Member Typedef Documentation

typedef std::set<StylesheetRoot*> StylesheetConstructionContextDefault::StylesheetSetType


Constructor & Destructor Documentation

StylesheetConstructionContextDefault::StylesheetConstructionContextDefault ( XSLTEngineImpl & processor,
XPathEnvSupport & xpathEnvSupport,
XPathFactory & xpathFactory)

StylesheetConstructionContextDefault::StylesheetConstructionContextDefault ( XSLTEngineImpl & processor,
XPathFactory & xpathFactory)

virtual StylesheetConstructionContextDefault::~StylesheetConstructionContextDefault () [virtual]


Member Function Documentation

virtual Stylesheet* StylesheetConstructionContextDefault::create ( StylesheetRoot & theStylesheetRoot,
const XalanDOMString & theBaseIdentifier) [virtual]

Create a new Stylesheet instance.

The StylesheetConstructionContext instance owns the Stylesheet instance, and will delete it when asked or when the StylesheetConstructionContext instance is destroyed.

Parameters:
A   reference to the StylesheetRoot instance.
theBaseIdentifier   A URI to the stylesheet file.
Returns:
A pointer to a new StylesheetRoot instance.

Reimplemented from StylesheetConstructionContext.

virtual StylesheetRoot* StylesheetConstructionContextDefault::create ( const XSLTInputSource & theInputSource) [virtual]

Create a new StylesheetRoot instance.

The StylesheetConstructionContext instance owns the StylesheetRoot instance, and will delete it when asked or when the StylesheetConstructionContext instance is destroyed.

Parameters:
theInputSource   A reference to the input source.
Returns:
A pointer to a new StylesheetRoot instance.

Reimplemented from StylesheetConstructionContext.

virtual StylesheetRoot* StylesheetConstructionContextDefault::create ( const XalanDOMString & theBaseIdentifier) [virtual]

Create a new StylesheetRoot instance.

The StylesheetConstructionContext instance owns the StylesheetRoot instance, and will delete it when asked or when the StylesheetConstructionContext instance is destroyed.

Parameters:
theBaseIdentifier   A URI to the stylesheet file.
Returns:
A pointer to a new StylesheetRoot instance.

Reimplemented from StylesheetConstructionContext.

virtual XPath* StylesheetConstructionContextDefault::createMatchPattern ( const Locator * locator,
const XalanDOMChar * str,
const PrefixResolver & resolver) [virtual]

Create and initialize an xpath for a match pattern and return it.

This is to be used by stylesheet elements that need an XPath that is guaranteed to persist while it lives.

Parameters:
locator   the locator for the XPath. May be null.
str   string to match
resolver   resolver for namespace resolution
Returns:
XPath for match pattern

Reimplemented from StylesheetConstructionContext.

virtual XPath* StylesheetConstructionContextDefault::createMatchPattern ( const Locator * locator,
const XalanDOMString & str,
const PrefixResolver & resolver) [virtual]

Create and initialize an xpath for a match pattern and return it.

This is to be used by stylesheet elements that need an XPath that is guaranteed to persist while it lives.

Parameters:
locator   the locator for the XPath. May be null.
str   string to match
resolver   resolver for namespace resolution
Returns:
XPath for match pattern

Reimplemented from StylesheetConstructionContext.

virtual XPath* StylesheetConstructionContextDefault::createXPath ( const Locator * locator,
const XalanDOMChar * str,
const PrefixResolver & resolver) [virtual]

Create and initialize an xpath and return it.

This is to be used by stylesheet elements that need an XPath that is guaranteed to persist while it lives.

Parameters:
locator   the locator for the XPath. May be null.
str   string to match
resolver   resolver for namespace resolution
Returns:
XPath for string matched

Reimplemented from StylesheetConstructionContext.

virtual XPath* StylesheetConstructionContextDefault::createXPath ( const Locator * locator,
const XalanDOMString & str,
const PrefixResolver & resolver) [virtual]

Create and initialize an xpath and return it.

This is to be used by stylesheet elements that need an XPath that is guaranteed to persist while it lives.

Parameters:
locator   the locator for the XPath. May be null.
str   string to match
resolver   resolver for namespace resolution
Returns:
XPath for string matched

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::destroy ( StylesheetRoot * theStylesheetRoot) [virtual]

Destroy a StylesheetRoot instance.

If this StylesheetConstructionContext instance does not own the StylesheetRoot, it will not delete it

Parameters:
theStylesheet   A pointer to the StylesheetRoot instance to delete.

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::error ( const char * msg,
const XalanNode * sourceNode,
const Locator * locator) const [virtual]

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::error ( const char * msg,
const XalanNode * sourceNode = 0,
const ElemTemplateElement * styleNode = 0) const [virtual]

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::error ( const XalanDOMString & msg,
const XalanNode * sourceNode,
const Locator * locator) const [virtual]

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::error ( const XalanDOMString & msg,
const XalanNode * sourceNode = 0,
const ElemTemplateElement * styleNode = 0) const [virtual]

Reimplemented from StylesheetConstructionContext.

virtual int StylesheetConstructionContextDefault::getElementToken ( const XalanDOMString & name) const [virtual]

Given an XSL tag name, return an integer token that corresponds to ELEMNAME_XXX constants defined in Constants.hpp.

Parameters:
name   a probable xsl:xxx element
Returns:
Constants.ELEMNAME_XXX token, -1 if in XSL or Xalan namespace, or -2 if not in known namespace

Reimplemented from StylesheetConstructionContext.

virtual const Locator* StylesheetConstructionContextDefault::getLocatorFromStack () const [virtual]

Get the locator from the top of the locator stack.

Returns:
A pointer to the Locator, or 0 if there is nothing on the stack.

Reimplemented from StylesheetConstructionContext.

virtual URLAutoPtrType StylesheetConstructionContextDefault::getURLFromString ( const XalanDOMString & urlString,
const XalanDOMString & base) [virtual]

Determine the fully qualified URI for a string.

Parameters:
urlString   string to qualify
base   base location for URI
Returns:
auto pointer to fully qualified URI

Reimplemented from StylesheetConstructionContext.

virtual URLAutoPtrType StylesheetConstructionContextDefault::getURLFromString ( const XalanDOMString & urlString) [virtual]

Determine the fully qualified URI for a string.

Parameters:
urlString   string to qualify
Returns:
auto pointer to fully qualified URI

Reimplemented from StylesheetConstructionContext.

virtual XalanDOMString StylesheetConstructionContextDefault::getURLStringFromString ( const XalanDOMString & urlString,
const XalanDOMString & base) [virtual]

Determine the fully qualified URI for a string.

Parameters:
urlString   string to qualify
base   base location for URI
Returns:
string to fully qualified URI

Reimplemented from StylesheetConstructionContext.

virtual XalanDOMString StylesheetConstructionContextDefault::getURLStringFromString ( const XalanDOMString & urlString) [virtual]

Determine the fully qualified URI for a string.

Parameters:
urlString   string to qualify
Returns:
string to fully qualified URI

Reimplemented from StylesheetConstructionContext.

virtual const XalanDOMString& StylesheetConstructionContextDefault::getXSLTNamespaceURI () const [virtual]

Retrieve the URI for the current XSLT namespace, for example, "http://www.w3.org/1999/XSL/Transform".

Returns:
URI string

Reimplemented from StylesheetConstructionContext.

virtual double StylesheetConstructionContextDefault::getXSLTVersionSupported () const [virtual]

Get the latest XSLT version currently supported.

Returns:
XSLT version number

Reimplemented from StylesheetConstructionContext.

virtual const XalanDOMString& StylesheetConstructionContextDefault::getXalanXSLNameSpaceURL () const [virtual]

Get the Xalan namespace for built-in extensions.

Returns:
Xalan namespace for extensions

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::message ( const char * msg,
const XalanNode * sourceNode,
const Locator * locator) const [virtual]

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::message ( const char * msg,
const XalanNode * sourceNode = 0,
const ElemTemplateElement * styleNode = 0) const [virtual]

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::message ( const XalanDOMString & msg,
const XalanNode * sourceNode,
const Locator * locator) const [virtual]

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::message ( const XalanDOMString & msg,
const XalanNode * sourceNode = 0,
const ElemTemplateElement * styleNode = 0) const [virtual]

Reimplemented from StylesheetConstructionContext.

virtual XalanDocument* StylesheetConstructionContextDefault::parseXML ( const XalanDOMString & urlString,
DocumentHandler * docHandler,
XalanDocument * docToRegister) [virtual]

Read in the XML file, either producing a Document or calling SAX events, and register the document in a table.

If the document has already been read in, it will not be reparsed.

Parameters:
urlString   location of the XML
docHandler   pointer to SAX event handler
docToRegister   if using a SAX event handler, the object to register in the source docs table.
Returns:
document object, which represents the parsed XML
Exceptions:
SAXException  

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::popLocatorStack () [virtual]

Pop the locator from the top of the locator stack.

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::pushLocatorOnStack ( const Locator * locator) [virtual]

Push a locator on to the locator stack.

Parameters:
A   pointer to the Locator to push.

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::reset () [virtual]

Reset the StylesheetConstructionContext instance.

Any existing objects created by the instance will be destroyed.

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::warn ( const char * msg,
const XalanNode * sourceNode,
const Locator * locator) const [virtual]

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::warn ( const char * msg,
const XalanNode * sourceNode = 0,
const ElemTemplateElement * styleNode = 0) const [virtual]

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::warn ( const XalanDOMString & msg,
const XalanNode * sourceNode,
const Locator * locator) const [virtual]

Reimplemented from StylesheetConstructionContext.

virtual void StylesheetConstructionContextDefault::warn ( const XalanDOMString & msg,
const XalanNode * sourceNode = 0,
const ElemTemplateElement * styleNode = 0) const [virtual]

Reimplemented from StylesheetConstructionContext.


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++ XSLT Processor Version 1.4
Copyright © 2000, 2001, 2002 The Apache Software Foundation. All Rights Reserved.