Xalan-C++ API Reference
1.12.0
|
#include <xalanc/XSLT/StylesheetConstructionContext.hpp>
Public Member Functions | |
StylesheetConstructionContext (MemoryManager &theManager) | |
virtual | ~StylesheetConstructionContext () |
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)=0 |
Function that is called when a problem event occurs. More... | |
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode)=0 |
Function that is called when a problem event occurs. More... | |
virtual void | reset ()=0 |
Reset the instance. More... | |
virtual const XalanDOMString & | getPooledString (const XalanDOMString &theString)=0 |
Get a pooled string given the source string. More... | |
virtual const XalanDOMString & | getPooledString (const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos)=0 |
Get a pooled string given the source character array. More... | |
virtual XalanDOMString & | getCachedString ()=0 |
Get a cached string for temporary use. More... | |
virtual bool | releaseCachedString (XalanDOMString &theString)=0 |
Return a cached string. More... | |
virtual StylesheetRoot * | create (const XalanDOMString &theBaseIdentifier)=0 |
Create a new StylesheetRoot instance. More... | |
virtual StylesheetRoot * | create (const XSLTInputSource &theInputSource)=0 |
Create a new StylesheetRoot instance. More... | |
virtual Stylesheet * | create (StylesheetRoot &theStylesheetRoot, const XalanDOMString &theBaseIdentifier)=0 |
Create a new Stylesheet instance. More... | |
virtual void | destroy (StylesheetRoot *theStylesheetRoot)=0 |
Destroy a StylesheetRoot instance. More... | |
virtual URLAutoPtrType | getURLFromString (const XalanDOMString &urlString)=0 |
Determine the fully qualified URI for a string. More... | |
virtual XalanDOMString & | getURLStringFromString (const XalanDOMString &urlString, XalanDOMString &theResult)=0 |
Determine the fully qualified URI for a string. More... | |
virtual URLAutoPtrType | getURLFromString (const XalanDOMString &urlString, const XalanDOMString &base)=0 |
Determine the fully qualified URI for a string. More... | |
virtual XalanDOMString & | getURLStringFromString (const XalanDOMString &urlString, const XalanDOMString &base, XalanDOMString &theResult)=0 |
Determine the fully qualified URI for a string. More... | |
virtual const XalanDOMString & | getXSLTNamespaceURI () const =0 |
Retrieve the URI for the current XSLT namespace, for example, "http://www.w3.org/1999/XSL/Transform". More... | |
virtual XPath * | createMatchPattern (const Locator *locator, const XalanDOMString &str, const PrefixResolver &resolver, bool allowVariableReferences=true, bool allowKeyFunction=true)=0 |
Create and initialize an xpath for a match pattern and return it. More... | |
virtual XPath * | createMatchPattern (const Locator *locator, const XalanDOMChar *str, const PrefixResolver &resolver, bool allowVariableReferences=true, bool allowKeyFunction=true)=0 |
Create and initialize an xpath for a match pattern and return it. More... | |
virtual XPath * | createXPath (const Locator *locator, const XalanDOMString &str, const PrefixResolver &resolver, bool allowVariableReferences=true, bool allowKeyFunction=true)=0 |
Create and initialize an xpath and return it. More... | |
virtual XPath * | createXPath (const Locator *locator, const XalanDOMChar *str, const PrefixResolver &resolver, bool allowVariableReferences=true, bool allowKeyFunction=true)=0 |
Create and initialize an xpath and return it. More... | |
virtual XPath * | createXPath (const Locator *locator, const XalanDOMChar *str, XalanDOMString::size_type len, const PrefixResolver &resolver, bool allowVariableReferences=true, bool allowKeyFunction=true)=0 |
Create and initialize an xpath and return it. More... | |
virtual const Locator * | getLocatorFromStack () const =0 |
Get the locator from the top of the locator stack. More... | |
virtual void | pushLocatorOnStack (const Locator *locator)=0 |
Push a locator on to the locator stack. More... | |
virtual void | popLocatorStack ()=0 |
Pop the locator from the top of the locator stack. More... | |
virtual const XalanDOMString & | getXalanXSLNameSpaceURL () const =0 |
Get the Xalan namespace for built-in extensions. More... | |
virtual XalanDocument * | parseXML (const XalanDOMString &urlString, DocumentHandler *docHandler, XalanDocument *docToRegister, ErrorHandler *theErrorHandler=0)=0 |
Read in the XML file, either producing a Document or calling SAX events, and register the document in a table. More... | |
virtual bool | isXMLSpaceAttribute (const XalanDOMChar *theAttributeName, const Stylesheet &theStylesheet, const Locator *theLocator=0)=0 |
Given an name, determine if it is the xml:space attribute. More... | |
virtual bool | isXSLUseAttributeSetsAttribute (const XalanDOMChar *theAttributeName, const Stylesheet &theStylesheet, const Locator *theLocator=0)=0 |
Given an name, determine if it is the xsl:use-attribute-sets attribute. More... | |
virtual bool | isValidQName (const XalanDOMChar *theName, const Stylesheet &theStylesheet, const Locator *theLocator=0)=0 |
Given an name, determine if it is a valid QName. More... | |
virtual eElementToken | getElementToken (const XalanDOMString &name) const =0 |
Given an XSL tag name, return an integer token that corresponds to the enums defined above. More... | |
virtual double | getXSLTVersionSupported () const =0 |
Get the latest XSLT version currently supported. More... | |
virtual XalanDOMChar * | allocateXalanDOMCharVector (XalanDOMString::size_type theLength)=0 |
Allocate a vector of XalanDOMChar of the specified size. More... | |
virtual XalanDOMChar * | allocateXalanDOMCharVector (const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos, bool fTerminate=true)=0 |
Allocate a vector of XalanDOMChar of the specified size. More... | |
virtual const AVT * | createAVT (const Locator *locator, const XalanDOMChar *name, const XalanDOMChar *stringedValue, const PrefixResolver &resolver)=0 |
Create an AVT instance. More... | |
virtual const AVTPart * | createAVTPart (const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos)=0 |
Create an AVTPart instance. More... | |
virtual const AVTPart * | createAVTPart (const Locator *locator, const XalanDOMChar *str, XalanDOMString::size_type len, const PrefixResolver &resolver)=0 |
Create an AVTPart instance. More... | |
virtual const AVT ** | allocateAVTPointerVector (size_type theLength)=0 |
Allocate a vector of const AVT* of the specified length. More... | |
virtual const AVTPart ** | allocateAVTPartPointerVector (size_type theLength)=0 |
Allocate a vector of const AVTPart* of the specified length. More... | |
virtual const XalanQName * | createXalanQName (const XalanDOMString &qname, const NamespacesStackType &namespaces, const Locator *locator=0, bool fUseDefault=false)=0 |
Create a XalanQName-derived instance. More... | |
virtual const XalanQName * | createXalanQName (const XalanDOMChar *qname, const NamespacesStackType &namespaces, const Locator *locator=0, bool fUseDefault=false)=0 |
Create a XalanQName-derived instance. More... | |
virtual const XalanQName ** | tokenizeQNames (size_type &count, const XalanDOMChar *qnameTokens, const NamespacesStackType &namespaces, const Locator *locator=0, bool fUseDefault=false)=0 |
Tokenize a string and return the QNames corresponding to those tokens. More... | |
virtual ElemTemplateElement * | createElement (int token, Stylesheet &stylesheetTree, const AttributeList &atts, const Locator *locator=0)=0 |
Create a stylesheet element for the provided type. More... | |
virtual ElemTemplateElement * | createElement (int token, Stylesheet &stylesheetTree, const XalanDOMChar *name, const AttributeList &atts, const Locator *locator=0)=0 |
Create a elements which have specific names. More... | |
virtual ElemTemplateElement * | createElement (Stylesheet &stylesheetTree, const XalanDOMChar *chars, XalanDOMString::size_type length, bool preserveSpace, bool disableOutputEscaping, const Locator *locator=0)=0 |
Create a an element for literal text. More... | |
virtual ElemTemplateElement * | createElement (Stylesheet &stylesheetTree, const XalanDOMChar *name, const AttributeList &atts, ExtensionNSHandler &handler, const Locator *locator=0)=0 |
Create an element to handle an extension element. More... | |
virtual const XalanMatchPatternData * | createXalanMatchPatternData (const ElemTemplate &theTemplate, size_type thePosition, const XalanDOMString &theTargetString, const XPath &theMatchPattern, const XalanDOMString &thePatternString, XPath::eMatchScore thePriority)=0 |
Create an instance of XalanMatchPatternData, which describes data related to a match pattern and template in stylesheet. More... | |
Public Member Functions inherited from xalanc::XPathConstructionContext | |
XPathConstructionContext (MemoryManager &theManager) | |
virtual | ~XPathConstructionContext () |
MemoryManager & | getMemoryManager () const |
MemoryManager & | getMemoryManager () |
Public Member Functions inherited from xalanc::ProblemListenerBase | |
ProblemListenerBase () | |
virtual | ~ProblemListenerBase () |
Additional Inherited Members | |
Static Public Member Functions inherited from xalanc::ProblemListenerBase | |
static void | defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode) |
Function to format a problem call to a PrintWriter instance. More... | |
static void | defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode) |
Function to format a problem call to a PrintWriter instance. More... | |
Static Protected Attributes inherited from xalanc::ProblemListenerBase | |
static const XalanMessages::Codes | s_messageCodes [eSourceCount][eClassificationCount] |
Definition at line 83 of file StylesheetConstructionContext.hpp.
Definition at line 87 of file StylesheetConstructionContext.hpp.
Definition at line 157 of file StylesheetConstructionContext.hpp.
IDs for XSL element types.
These are the values that must be returned by getElementToken().
Definition at line 93 of file StylesheetConstructionContext.hpp.
|
explicit |
|
virtual |
|
pure virtual |
Allocate a vector of const AVTPart* of the specified length.
theLength | The length of the vector |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Allocate a vector of const AVT* of the specified length.
theLength | The length of the vector |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Allocate a vector of XalanDOMChar of the specified size.
theString | The source character array |
theLength | The length of the character vector |
fTerminate | If true, terminate the new vector with 0 |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Allocate a vector of XalanDOMChar of the specified size.
theLength | The length of the character vector |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure 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.
theBaseIdentifier | A URI to the stylesheet file. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure 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.
theInputSource | A reference to the input source. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure 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.
A | reference to the StylesheetRoot instance. |
theBaseIdentifier | A URI to the stylesheet file. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Create an AVT instance.
locator | the Locator for the instance. May be null. |
name | name of AVT |
stringedValue | string value to parse |
resolver | resolver for namespace resolution |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Create an AVTPart instance.
locator | the Locator for the instance. May be null. |
str | The XPath expression for the instance |
len | The length of the expression |
resolver | resolver for namespace resolution |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Create an AVTPart instance.
theString | The source character array |
theLength | The length of the character vector |
fTerminate | If true, terminate the new vector with 0 |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Create a stylesheet element for the provided type.
The instance owns the memory and will delete the element when it goes out of scope and the containing stylesheet is destroyed.
token | The enum value of the element to create. |
stylesheetTree | The stylesheet containing the element |
atts | The list of attributes for the element |
locator | The Locator instance for error reporting. May be 0. |
|
pure virtual |
Create a elements which have specific names.
The instance owns the memory and will delete the element when it goes out of scope and the containing stylesheet is destroyed.
token | The enum value of the element to create. |
stylesheetTree | The stylesheet containing the element |
name | The name of the element |
atts | The list of attributes for the element |
locator | The Locator instance for error reporting. May be 0. |
|
pure virtual |
Create a an element for literal text.
The instance owns the memory and will delete the element when it goes out of scope and the containing stylesheet is destroyed.
stylesheetTree | The stylesheet containing the element |
chars | The pointer to character string for element |
length | length of the chars parameter. |
preserveSpace | true is space should be preserved |
disableOutputEscaping | true if output escaping should be disabled |
locator | The Locator instance for error reporting. May be 0. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Create an element to handle an extension element.
The instance owns the memory and will delete the element when it goes out of scope and the containing stylesheet is destroyed.
stylesheetTree | The stylesheet containing the element |
name | The name of the element |
atts | The list of attributes for the element |
handler | The handler for elements in the extension namespace |
locator | The Locator instance for error reporting. May be 0. |
|
pure 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.
locator | the locator for the XPath. May be null. |
str | string to match |
resolver | resolver for namespace resolution |
allowVariableReferences | If true, variable references are allowed. |
allowKeyFunction | If true, calls to the key() function are allowed. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure 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.
locator | the locator for the XPath. May be null. |
str | string to match |
resolver | resolver for namespace resolution |
allowVariableReferences | If true, variable references are allowed. |
allowKeyFunction | If true, calls to the key() function are allowed. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Create an instance of XalanMatchPatternData, which describes data related to a match pattern and template in stylesheet.
The instance owns the memory and will delete the element when it goes out of scope and the containing stylesheet is destroyed.
theTemplate | The ElemTemplate node that contains the template for this pattern |
thePosition | The position in the stylesheet |
theTargetString | The target string for match pattern |
TheMatchPattern | The match pattern |
thePatternString | the pattern string |
thePriority | The priority for the match pattern. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Create a XalanQName-derived instance.
qname | The qname string |
namespaces | The stack of namespaces |
Locator | The current Locator, if any |
fUseDefault | If true, a qname without a prefix will use the default namespace |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Create a XalanQName-derived instance.
qname | The qname string |
namespaces | The stack of namespaces |
Locator | The current Locator, if any |
fUseDefault | If true, a qname without a prefix will use the default namespace |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure 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.
locator | the locator for the XPath. May be null. |
str | string to match |
resolver | resolver for namespace resolution |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure 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.
locator | the locator for the XPath. May be null. |
str | string to match |
resolver | resolver for namespace resolution |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure 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.
locator | the locator for the XPath. May be null. |
str | string to match |
resolver | resolver for namespace resolution |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Destroy a StylesheetRoot instance.
If this StylesheetConstructionContext instance does not own the StylesheetRoot, it will not delete it
theStylesheet | A pointer to the StylesheetRoot instance to delete. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Get a cached string for temporary use.
Implements xalanc::XPathConstructionContext.
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Given an XSL tag name, return an integer token that corresponds to the enums defined above.
name | a probable xsl:xxx element |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Get the locator from the top of the locator stack.
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Get a pooled string given the source character array.
If the string already exists in the pool, no copy will be made. If not, a copy will be made and kept for later use.
theString | The source character array |
theLength | The length of the character array |
Implements xalanc::XPathConstructionContext.
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Get a pooled string given the source string.
If the string already exists in the pool, no copy will be made. If not, a copy will be made and kept for later use.
theString | The source string |
Implements xalanc::XPathConstructionContext.
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Determine the fully qualified URI for a string.
urlString | string to qualify |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Determine the fully qualified URI for a string.
urlString | string to qualify |
base | base location for URI |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Determine the fully qualified URI for a string.
urlString | string to qualify |
base | base location for URI |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Determine the fully qualified URI for a string.
urlString | string to qualify |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Get the Xalan namespace for built-in extensions.
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Retrieve the URI for the current XSLT namespace, for example, "http://www.w3.org/1999/XSL/Transform".
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Get the latest XSLT version currently supported.
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Given an name, determine if it is a valid QName.
theName | The name to check |
theStylesheet | The current Stylesheet instance |
theLocator | The Locator for error reporting. May be 0. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Given an name, determine if it is the xml:space attribute.
theAttributeName | The name to check |
theStylesheet | The current Stylesheet instance |
theLocator | The Locator for error reporting. May be 0. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Given an name, determine if it is the xsl:use-attribute-sets attribute.
theAttributeName | The name to check |
theStylesheet | The current Stylesheet instance |
theLocator | The Locator for error reporting. May be 0. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure 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.
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. |
SAXException |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Pop the locator from the top of the locator stack.
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Function that is called when a problem event occurs.
source | Either eXMLParser, eXSLProcessor, or eXPATH. |
classification | Either eMessage, eWarning, or eError. |
locator | The current Locator instance for the stylesheet. Maybe be a null pointer. |
sourceNode | The current source node, if any. |
msg | The error message. |
Implements xalanc::XPathConstructionContext.
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Function that is called when a problem event occurs.
This version assumes location information is already formatted into the message.
source | either eXMLPARSER, eXSLPROCESSOR, or eXPATH |
classification | either eMESSAGE, eERROR or eWARNING |
msg | string message explaining the problem. |
Implements xalanc::XPathConstructionContext.
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Push a locator on to the locator stack.
A | pointer to the Locator to push. |
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Return a cached string.
theString | The string to release. |
Implements xalanc::XPathConstructionContext.
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Reset the instance.
Any existing objects created by the instance will be destroyed.
Implements xalanc::XPathConstructionContext.
Implemented in xalanc::StylesheetConstructionContextDefault.
|
pure virtual |
Tokenize a string and return the QNames corresponding to those tokens.
count | The number of namespaces in the vector returned |
qnameTokens | The string to tokenize |
namespaces | The stack of namespaces |
Locator | The current Locator, if any |
fUseDefault | If true, qnames without prefixes will use the default namespace |
Implemented in xalanc::StylesheetConstructionContextDefault.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:33 for Xalan-C++ API Reference by 1.8.17