Xalan-C++ API Documentation
Xalan-C++ API Documentation
The Xalan C++ XSL Transformer Version 1.1
Main Page 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
[legend]Collaboration diagram for StylesheetConstructionContextDefault:
[legend]List of all members.Public Types
Public Methods
- StylesheetConstructionContextDefault ( XSLTEngineImpl& processor, XPathEnvSupport& xpathEnvSupport, XPathFactory& xpathFactory)
- virtual ~StylesheetConstructionContextDefault ()
- virtual void error ( const XalanDOMString& msg, const XalanNode* sourceNode = 0, const XalanNode* styleNode = 0) const
- Tell the user of an error, and probably throw an exception. More...
- virtual void error ( const char* msg, const XalanNode* sourceNode = 0, const XalanNode* styleNode = 0) const
- Tell the user of an error, and probably throw an exception. More...
- virtual void warn ( const XalanDOMString& msg, const XalanNode* sourceNode = 0, const XalanNode* styleNode = 0) const
- Tell the user of an warning, and probably throw an exception. More...
- virtual void warn ( const char* msg, const XalanNode* sourceNode = 0, const XalanNode* styleNode = 0) const
- Tell the user of an warning, and probably throw an exception. More...
- virtual void message ( const XalanDOMString& msg, const XalanNode* sourceNode = 0, const XalanNode* styleNode = 0) const
- Output a message. More...
- virtual void message ( const char* msg, const XalanNode* sourceNode = 0, const XalanNode* styleNode = 0) const
- Output a message. More...
- virtual void reset ()
- Reset the StylesheetConstructionContext instance. More...
- virtual StylesheetRoot* create (const XalanDOMString& theBaseIdentifier)
- Create a new StylesheetRoot instance. More...
- virtual StylesheetRoot* create (const XSLTInputSource& theInputSource)
- Create a new StylesheetRoot instance. More...
- virtual Stylesheet* create ( StylesheetRoot& theStylesheetRoot, const XalanDOMString& theBaseIdentifier)
- Create a new Stylesheet instance. More...
- virtual void destroy (StylesheetRoot* theStylesheetRoot)
- Destroy a StylesheetRoot instance. More...
- virtual int getAttrTok (const XalanDOMString& name) const
- Given an XSL tag name, return an integer token that corresponds to ELEMNAME_XXX constants defined in Constants.hpp. More...
- virtual int getAttrTok (const XalanDOMChar* name) const
- Given an XSL tag name, return an integer token that corresponds to ELEMNAME_XXX constants defined in Constants.hpp. More...
- virtual URLAutoPtrType getURLFromString (const XalanDOMString& urlString)
- Determine the fully qualified URI for a string. More...
- virtual XalanDOMString getURLStringFromString (const XalanDOMString& urlString)
- Determine the fully qualified URI for a string. More...
- virtual URLAutoPtrType getURLFromString ( const XalanDOMString& urlString, const XalanDOMString& base)
- Determine the fully qualified URI for a string. More...
- virtual XalanDOMString getURLStringFromString ( const XalanDOMString& urlString, const XalanDOMString& base)
- Determine the fully qualified URI for a string. More...
- virtual const XalanDOMString& getXSLTNamespaceURI () const
- Retrieve the URI for the current XSLT namespace, for example, "http://www.w3.org/1999/XSL/Transform". More...
- virtual XPath* createMatchPattern ( const XalanDOMString& str, const PrefixResolver& resolver)
- Create and initialize an xpath for a match pattern and return it. More...
- virtual XPath* createMatchPattern ( const XalanDOMChar* str, const PrefixResolver& resolver)
- Create and initialize an xpath for a match pattern and return it. More...
- virtual XPath* createXPath ( const XalanDOMString& str, const PrefixResolver& resolver)
- Create and initialize an xpath and return it. More...
- virtual XPath* createXPath ( const XalanDOMChar* str, const PrefixResolver& resolver)
- Create and initialize an xpath and return it. More...
- virtual const Locator* getLocatorFromStack () const
- Get the locator from the top of the locator stack. More...
- virtual void pushLocatorOnStack (const Locator* locator)
- Push a locator on to the locator stack. More...
- virtual void popLocatorStack ()
- Pop the locator from the top of the locator stack.
- virtual const XalanDOMString& getXalanXSLNameSpaceURL () const
- Get the Xalan namespace for built-in extensions. More...
- virtual XalanDocument* parseXML ( const XalanDOMString& urlString, DocumentHandler* docHandler, XalanDocument* docToRegister)
- Read in the XML file, either producing a Document or calling SAX events, and register the document in a table. More...
- virtual int getElementToken (const XalanDOMString& name) const
- Given an XSL tag name, return an integer token that corresponds to ELEMNAME_XXX constants defined in Constants.hpp. More...
- virtual double getXSLTVersionSupported () const
- Get the latest XSLT version currently supported. More...
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
virtual StylesheetConstructionContextDefault::~StylesheetConstructionContextDefault (
|
) [virtual]
|
|
Member Function Documentation
|
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:
-
str
|
string to match |
resolver
|
resolver for namespace resolution |
-
Returns:
-
XPath for match pattern
Reimplemented from StylesheetConstructionContext. |
|
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:
-
str
|
string to match |
resolver
|
resolver for namespace resolution |
-
Returns:
-
XPath for match pattern
Reimplemented from StylesheetConstructionContext. |
|
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:
-
str
|
string to match |
resolver
|
resolver for namespace resolution |
-
Returns:
-
XPath for string matched
Reimplemented from StylesheetConstructionContext. |
|
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:
-
str
|
string to match |
resolver
|
resolver for namespace resolution |
-
Returns:
-
XPath for string matched
Reimplemented from StylesheetConstructionContext. |
virtual void StylesheetConstructionContextDefault::destroy (
|
StylesheetRoot * theStylesheetRoot ) [virtual]
|
|
virtual void StylesheetConstructionContextDefault::error (
|
const char * msg,
|
|
const XalanNode * sourceNode = 0,
|
|
const XalanNode * styleNode = 0 ) const [virtual]
|
|
|
Tell the user of an error, and probably throw an exception.
-
Parameters:
-
msg
|
text of message to output |
sourceNode
|
node in source where error occurred |
styleNode
|
node in stylesheet where error occurred |
Reimplemented from StylesheetConstructionContext. |
virtual void StylesheetConstructionContextDefault::error (
|
const XalanDOMString & msg,
|
|
const XalanNode * sourceNode = 0,
|
|
const XalanNode * styleNode = 0 ) const [virtual]
|
|
|
Tell the user of an error, and probably throw an exception.
-
Parameters:
-
msg
|
text of message to output |
sourceNode
|
node in source where error occurred |
styleNode
|
node in stylesheet where error occurred |
Reimplemented from StylesheetConstructionContext. |
virtual int StylesheetConstructionContextDefault::getAttrTok (
|
const XalanDOMChar * 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 name |
-
Returns:
-
Constants.ELEMNAME_XXX token, or -1 if in xsl or Xalan namespace, -2 if not in known namespace
Reimplemented from StylesheetConstructionContext. |
virtual int StylesheetConstructionContextDefault::getAttrTok (
|
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 name |
-
Returns:
-
Constants.ELEMNAME_XXX token, or -1 if in xsl or Xalan namespace, -2 if not in known namespace
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. |
|
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. |
|
Determine the fully qualified URI for a string.
-
Parameters:
-
urlString
|
string to qualify |
-
Returns:
-
auto pointer to fully qualified URI
Reimplemented from StylesheetConstructionContext. |
|
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. |
|
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]
|
|
virtual double StylesheetConstructionContextDefault::getXSLTVersionSupported (
|
) const [virtual]
|
|
virtual const XalanDOMString& StylesheetConstructionContextDefault::getXalanXSLNameSpaceURL (
|
) const [virtual]
|
|
virtual void StylesheetConstructionContextDefault::message (
|
const char * msg,
|
|
const XalanNode * sourceNode = 0,
|
|
const XalanNode * styleNode = 0 ) const [virtual]
|
|
|
Output a message.
-
Parameters:
-
msg
|
text of message to output |
sourceNode
|
node in source where error occurred |
styleNode
|
node in stylesheet where error occurred |
Reimplemented from StylesheetConstructionContext. |
virtual void StylesheetConstructionContextDefault::message (
|
const XalanDOMString & msg,
|
|
const XalanNode * sourceNode = 0,
|
|
const XalanNode * styleNode = 0 ) const [virtual]
|
|
|
Output a message.
-
Parameters:
-
msg
|
text of message to output |
sourceNode
|
node in source where error occurred |
styleNode
|
node in stylesheet where error occurred |
Reimplemented from StylesheetConstructionContext. |
|
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:
-
Reimplemented from StylesheetConstructionContext. |
virtual void StylesheetConstructionContextDefault::popLocatorStack (
|
) [virtual]
|
|
virtual void StylesheetConstructionContextDefault::pushLocatorOnStack (
|
const Locator * locator ) [virtual]
|
|
virtual void StylesheetConstructionContextDefault::reset (
|
) [virtual]
|
|
virtual void StylesheetConstructionContextDefault::warn (
|
const char * msg,
|
|
const XalanNode * sourceNode = 0,
|
|
const XalanNode * styleNode = 0 ) const [virtual]
|
|
|
Tell the user of an warning, and probably throw an exception.
-
Parameters:
-
msg
|
text of message to output |
sourceNode
|
node in source where error occurred |
styleNode
|
node in stylesheet where error occurred |
Reimplemented from StylesheetConstructionContext. |
virtual void StylesheetConstructionContextDefault::warn (
|
const XalanDOMString & msg,
|
|
const XalanNode * sourceNode = 0,
|
|
const XalanNode * styleNode = 0 ) const [virtual]
|
|
|
Tell the user of an warning, and probably throw an exception.
-
Parameters:
-
msg
|
text of message to output |
sourceNode
|
node in source where error occurred |
styleNode
|
node in stylesheet where error occurred |
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++ XSL Transformer Version 1.1
Copyright © 2000, 2001 The Apache Software Foundation. All Rights Reserved.
|
|