The process method is the primary public entry points.
If you reuse the processor instance, you should call reset() between calls.
typedef XalanVector<const LocatorType*> XSLTEngineImpl::LocatorStack |
typedef XalanVector<const XalanDOMString*> XSLTEngineImpl::XalanDOMStringPointerVectorType |
typedef XalanVector<bool> XSLTEngineImpl::BoolVectorType |
typedef XPathConstructionContext::GetAndReleaseCachedString XSLTEngineImpl::CCGetAndReleaseCachedString |
typedef XPathExecutionContext::GetAndReleaseCachedString XSLTEngineImpl::ECGetAndReleaseCachedString |
XSLTEngineImpl::XSLTEngineImpl | ( | MemoryManagerType & | theManager, | |
XMLParserLiaison & | parserLiaison, | |||
XPathEnvSupport & | xpathEnvSupport, | |||
DOMSupport & | domSupport, | |||
XObjectFactory & | xobjectFactory, | |||
XPathFactory & | xpathFactory | |||
) |
Construct an XSL processor that can call back to a XML processor, so it can handle included files, and the like.
You must create a new instance of the XSLTEngineImpl class each time you run a transformation.
XMLParserLiaison | liaison to an object that can help with a specific parser implementation | |
xpathEnvSupport | An XPathEnvSupport instance | |
domSupport | A DOMSupport instance for the DOM being used | |
xobjectFactory | object responsible for XObject objects | |
xpathFactory | object responsible for XPath objects |
virtual XSLTEngineImpl::~XSLTEngineImpl | ( | ) | [virtual] |
MemoryManagerType& XSLTEngineImpl::getMemoryManager | ( | ) |
static void XSLTEngineImpl::initialize | ( | MemoryManagerType & | theManager | ) | [static] |
Perform initialization of statics -- must be called before any processing occurs.
See class XSLTInit.
static void XSLTEngineImpl::terminate | ( | ) | [static] |
Perform termination of statics.
See class XSLTInit.
virtual void XSLTEngineImpl::process | ( | const XSLTInputSource & | inputSource, | |
const XSLTInputSource & | stylesheetSource, | |||
XSLTResultTarget & | outputTarget, | |||
StylesheetConstructionContext & | constructionContext, | |||
StylesheetExecutionContext & | executionContext | |||
) | [virtual] |
Transform the source tree to the output in the given result tree target.
The processor will process the input source, the stylesheet source, and transform to the output target.
inputSource | input source | |
stylesheetSource | stylesheet source | |
outputTarget | output source tree | |
constructionContext | context for construction of objects | |
executionContext | current execution context |
XSLProcessorException |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::process | ( | const XSLTInputSource & | inputSource, | |
XSLTResultTarget & | outputTarget, | |||
StylesheetExecutionContext & | executionContext | |||
) | [virtual] |
Transform the source tree to the output in the given result tree target.
This function does not create a stylesheet tree, it assumes the provided StylesheetExecutionContext has the stylesheet tree to use. This is set by calling StylesheetExecutionContext::setStylesheetRoot().
inputSource | input source | |
outputTarget | output source tree | |
executionContext | current execution context |
XSLProcessorException |
Implements XSLTProcessor.
virtual StylesheetRoot* XSLTEngineImpl::processStylesheet | ( | const XSLTInputSource & | stylesheetSource, | |
StylesheetConstructionContext & | constructionContext | |||
) | [virtual] |
Given a stylesheet input source, compile the stylesheet into an internal representation.
stylesheetSource | input source for the stylesheet | |
constructionContext | context for construction of objects |
XSLProcessorException |
Implements XSLTProcessor.
virtual StylesheetRoot* XSLTEngineImpl::processStylesheet | ( | const XalanDOMString & | xsldocURLString, | |
StylesheetConstructionContext & | constructionContext | |||
) | [virtual] |
Given a URI to an XSL stylesheet, compile the stylesheet into an internal representation.
xmldocURLString | URI to the input XML document | |
constructionContext | context for construction of objects |
XSLProcessorException |
Implements XSLTProcessor.
virtual XalanNode* XSLTEngineImpl::getSourceTreeFromInput | ( | const XSLTInputSource & | inputSource | ) | [virtual] |
Given an input source, get the source tree.
inputSource | pointer to input source |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::resolveTopLevelParams | ( | StylesheetExecutionContext & | executionContext | ) | [virtual] |
virtual XMLParserLiaison& XSLTEngineImpl::getXMLParserLiaison | ( | ) | const [virtual] |
Get the XML Parser Liaison that this processor uses.
Implements XSLTProcessor.
virtual void XSLTEngineImpl::getUniqueNamespaceValue | ( | XalanDOMString & | theValue | ) | [virtual] |
Generate a random namespace prefix guaranteed to be unique.
theValue | A string for returning the new prefix |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::setStylesheetParam | ( | const XalanDOMString & | key, | |
const XalanDOMString & | expression | |||
) | [virtual] |
Push a top-level stylesheet parameter.
This value can be evaluated via xsl:param-variable.
key | name of the param | |
expression | expression that will be evaluated |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::setStylesheetParam | ( | const XalanDOMString & | key, | |
XObjectPtr | value | |||
) | [virtual] |
Push a top-level stylesheet parameter.
This value can be evaluated via xsl:param-variable.
key | name of the parameter | |
value | XObject value for parameter |
Implements XSLTProcessor.
virtual FormatterListener* XSLTEngineImpl::getFormatterListener | ( | ) | const [virtual] |
virtual void XSLTEngineImpl::setFormatterListener | ( | FormatterListener * | flistener | ) | [virtual] |
Set the current formatter listener.
flistener | pointer to new formatter listener |
Implements XSLTProcessor.
virtual size_type XSLTEngineImpl::getTraceListeners | ( | ) | const [virtual] |
virtual void XSLTEngineImpl::addTraceListener | ( | TraceListener * | tl | ) | [virtual] |
Add a trace listener for the purposes of debugging and diagnosis.
tl | pointer to listener to add |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::removeTraceListener | ( | TraceListener * | tl | ) | [virtual] |
virtual void XSLTEngineImpl::fireGenerateEvent | ( | const GenerateEvent & | ge | ) | [virtual] |
virtual void XSLTEngineImpl::fireTraceEvent | ( | const TracerEvent & | te | ) | [virtual] |
virtual void XSLTEngineImpl::fireSelectEvent | ( | const SelectionEvent & | se | ) | [virtual] |
virtual bool XSLTEngineImpl::getTraceSelects | ( | ) | const [virtual] |
If this is set to true, simple traces of template calls are made.
Implements XSLTProcessor.
virtual void XSLTEngineImpl::setTraceSelects | ( | bool | b | ) | [virtual] |
void XSLTEngineImpl::traceSelect | ( | StylesheetExecutionContext & | executionContext, | |
const ElemTemplateElement & | theStylesheetElement, | |||
const NodeRefListBase & | nl, | |||
const XPath * | xpath | |||
) | const [virtual] |
Compose a diagnostic trace of the current selection.
executionContext | The current execution context | |
theStylesheetElement | The executing stylesheet element | |
nl | The list of selected nodes | |
xpath | A pointer to the XPath which generated the list of nodes, if any. |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::setQuietConflictWarnings | ( | bool | b | ) | [virtual] |
If the quietConflictWarnings property is set to true, warnings about pattern conflicts won't be printed to the diagnostics stream.
True by default.
b | true if conflict warnings should be suppressed. |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::setDiagnosticsOutput | ( | PrintWriter * | pw | ) | [virtual] |
If this is set, diagnostics will be written to the m_diagnosticsPrintWriter stream.
If the value is null, then diagnostics will be turned off.
pw | pointer to print writer |
Implements XSLTProcessor.
virtual const XalanDOMString* XSLTEngineImpl::getNamespaceForPrefix | ( | const XalanDOMString & | prefix | ) | const [virtual] |
Retrieve a namespace corresponding to a prefix.
This assumes that the PrevixResolver hold's its own namespace context, or is a namespace context itself.
prefix | Prefix to resolve |
Implements PrefixResolver.
virtual const XalanDOMString& XSLTEngineImpl::getURI | ( | ) | const [virtual] |
XalanDocument* XSLTEngineImpl::parseXML | ( | const XalanDOMString & | urlString, | |
DocumentHandlerType * | docHandler, | |||
XalanDocument * | docToRegister | |||
) |
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 |
XalanDocument* XSLTEngineImpl::parseXML | ( | const InputSourceType & | inputSource, | |
DocumentHandlerType * | docHandler, | |||
XalanDocument * | docToRegister | |||
) |
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.
inputSource | 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 |
Stylesheet* XSLTEngineImpl::getStylesheetFromPIURL | ( | const XalanDOMString & | xslURLString, | |
XalanNode & | fragBase, | |||
const XalanDOMString & | xmlBaseIdent, | |||
bool | isRoot, | |||
StylesheetConstructionContext & | constructionContext | |||
) |
Reset the state of the XSL processor by reading in a new XSL stylesheet from a processing instruction.
xslURLString | valid URI to an XSL stylesheet | |
fragBase | base of tree if URI represents document fragment | |
xmlBaseIdent | base identifier for stylesheet URI | |
isRoot | true if stylesheet is root of tree | |
constructionContext | context for construction of object |
void XSLTEngineImpl::flushPending | ( | ) |
Flush the pending element.
void XSLTEngineImpl::addResultNamespaceDecl | ( | const XalanDOMString & | prefix, | |
const XalanDOMString & | namespaceVal | |||
) |
Add a namespace declaration to the namespace stack.
prefix | namespace prefix | |
namespaceVal | value of namespace |
void XSLTEngineImpl::addResultNamespaceDecl | ( | const XalanDOMString & | prefix, | |
const XalanDOMChar * | namespaceVal, | |||
XalanDOMString::size_type | len | |||
) |
Add a namespace declaration to the namespace stack.
prefix | namespace prefix | |
namespaceVal | value of namespace | |
len | length of namespace |
void XSLTEngineImpl::addResultAttribute | ( | AttributeListImpl & | attList, | |
const XalanDOMString & | aname, | |||
const XalanDOMString & | value, | |||
bool | fromCopy = false , |
|||
const LocatorType * | locator = 0 | |||
) |
Add attribute to attribute list, and if it is a namespace, add it to the namespaces stack.
attList | attribute list added to | |
aname | name of attribute | |
value | value of attribute | |
fromCopy | true if the attribute is being copied from the source tree | |
locator | The Locator for reporting errors. |
void XSLTEngineImpl::addResultAttribute | ( | AttributeListImpl & | attList, | |
const XalanDOMString & | aname, | |||
const XalanDOMChar * | value, | |||
bool | fromCopy = false , |
|||
const LocatorType * | locator = 0 | |||
) |
Add attribute to attribute list, and if it is a namespace, add it to the namespaces stack.
attList | attribute list added to | |
aname | name of attribute | |
value | value of attribute | |
fromCopy | true if the attribute is being copied from the source tree | |
locator | The Locator for reporting errors. |
void XSLTEngineImpl::addResultAttribute | ( | AttributeListImpl & | attList, | |
const XalanDOMString & | aname, | |||
const XalanDOMChar * | value, | |||
XalanDOMString::size_type | theLength, | |||
bool | fromCopy = false , |
|||
const LocatorType * | locator = 0 | |||
) |
Add attribute to attribute list, and if it is a namespace, add it to the namespaces stack.
attList | attribute list added to | |
aname | name of attribute | |
value | value of attribute | |
theLength | The length of the value | |
fromCopy | true if the attribute is being copied from the source tree | |
locator | The Locator for reporting errors. |
void XSLTEngineImpl::addResultAttribute | ( | const XalanDOMString & | aname, | |
const XalanDOMChar * | value, | |||
bool | fromCopy = false , |
|||
const LocatorType * | locator = 0 | |||
) |
Add attribute to pending attributes list, and if it is a namespace, add it to the namespaces stack.
aname | name of attribute | |
value | value of attribute | |
fromCopy | true if the attribute is being copied from the source tree | |
locator | The Locator for reporting errors. |
void XSLTEngineImpl::addResultAttribute | ( | const XalanDOMString & | aname, | |
const XalanDOMString & | value, | |||
bool | fromCopy = false , |
|||
const LocatorType * | locator = 0 | |||
) |
Add attribute to pending attributes list, and if it is a namespace, add it to the namespaces stack.
aname | name of attribute | |
value | value of attribute | |
fromCopy | true if the attribute is being copied from the source tree | |
locator | The Locator for reporting errors. |
void XSLTEngineImpl::reportDuplicateNamespaceNodeError | ( | const XalanDOMString & | theName, | |
const LocatorType * | locator | |||
) |
Report an error copying a duplicate namespace node.
theName | The name of the node. |
void XSLTEngineImpl::setDocumentLocator | ( | const LocatorType * | locator | ) |
void XSLTEngineImpl::startDocument | ( | ) |
void XSLTEngineImpl::endDocument | ( | ) |
void XSLTEngineImpl::startElement | ( | const XalanDOMChar * | name, | |
AttributeListType & | atts | |||
) |
void XSLTEngineImpl::endElement | ( | const XalanDOMChar * | name | ) |
void XSLTEngineImpl::characters | ( | const XalanDOMChar * | ch, | |
XalanDOMString::size_type | length | |||
) |
void XSLTEngineImpl::ignorableWhitespace | ( | const XalanDOMChar * | ch, | |
XalanDOMString::size_type | length | |||
) |
void XSLTEngineImpl::processingInstruction | ( | const XalanDOMChar * | target, | |
const XalanDOMChar * | data | |||
) |
void XSLTEngineImpl::resetDocument | ( | ) |
void XSLTEngineImpl::characters | ( | const XalanDOMChar * | ch, | |
XalanDOMString::size_type | start, | |||
XalanDOMString::size_type | length | |||
) |
Receive notification of character data.
ch | pointer to characters from the XML document | |
start | startng offset in 'ch' array | |
length | number of characters to read from the array |
void XSLTEngineImpl::characters | ( | const XalanNode & | node | ) |
Send character data from the node to the result tree.
node | The node to send. |
void XSLTEngineImpl::characters | ( | const XObjectPtr & | xobject | ) |
void XSLTEngineImpl::startElement | ( | const XalanDOMChar * | name | ) |
Receive notification of the beginning of an element with an empty attribute list.
name | element type name |
void XSLTEngineImpl::charactersRaw | ( | const XalanDOMChar * | ch, | |
XalanDOMString::size_type | start, | |||
XalanDOMString::size_type | length | |||
) |
Receive notification of character data.
If available, when the disable-output-escaping attribute is used, output raw text without escaping.
ch | pointer to characters from the XML document | |
start | start position in the array | |
length | number of characters to read from the array |
void XSLTEngineImpl::charactersRaw | ( | const XalanNode & | node | ) |
Send raw character data from the node to the result tree.
node | The node to send. |
void XSLTEngineImpl::charactersRaw | ( | const XObjectPtr & | xobject | ) |
void XSLTEngineImpl::comment | ( | const XalanDOMChar * | data | ) |
Called when a Comment is to be constructed.
data | pointer to comment data |
void XSLTEngineImpl::entityReference | ( | const XalanDOMChar * | data | ) |
Receive notification of a entityReference.
data | pointer to characters from the XML document |
SAXException |
void XSLTEngineImpl::cdata | ( | const XalanDOMChar * | ch, | |
XalanDOMString::size_type | start, | |||
XalanDOMString::size_type | length | |||
) |
Receive notification of cdata.
ch | pointer to characters from the XML document | |
start | start position in the array | |
length | number of characters to read from the array |
void XSLTEngineImpl::cloneToResultTree | ( | const XalanNode & | node, | |
bool | cloneTextNodesOnly, | |||
const LocatorType * | locator | |||
) |
Clone a node to the result tree.
node | node to clone | |
cloneTextNodesOnly | if true, only text nodes will be cloned | |
locator | the Locator for the event, if any. |
void XSLTEngineImpl::cloneToResultTree | ( | const XalanNode & | node, | |
XalanNode::NodeType | nodeType, | |||
bool | overrideStrip, | |||
bool | shouldCloneAttributes, | |||
bool | cloneTextNodesOnly, | |||
const LocatorType * | locator | |||
) |
Clone a node to the result tree.
node | node to clone | |
nodeType | the type of the node | |
overrideStrip | false if white space stripping should be done | |
shouldCloneAttributes | true if attributes should be cloned | |
cloneTextNodesOnly | if true, only text nodes will be cloned | |
locator | the Locator for the event, if any. |
void XSLTEngineImpl::outputToResultTree | ( | const XObject & | value, | |
bool | outputTextNodesOnly, | |||
const LocatorType * | locator | |||
) |
Output an object to the result tree by doing the right conversions.
value | the XObject to output | |
outputTextNodesOnly | if true, only text nodes will be copied | |
locator | the Locator for the event, if any. |
void XSLTEngineImpl::outputResultTreeFragment | ( | const XObject & | theTree, | |
bool | outputTextNodesOnly, | |||
const LocatorType * | locator | |||
) |
Given a result tree fragment, walk the tree and output it to the result stream.
theTree | result tree fragment | |
outputTextNodesOnly | if true, only text nodes will be copied | |
locator | the Locator for the event, if any. |
void XSLTEngineImpl::outputResultTreeFragment | ( | const XalanDocumentFragment & | theTree, | |
bool | outputTextNodesOnly, | |||
const LocatorType * | locator | |||
) |
Given a result tree fragment, walk the tree and output it to the result stream.
theTree | result tree fragment | |
outputTextNodesOnly | if true, only text nodes will be copied | |
locator | the Locator for the event, if any. |
virtual const StylesheetRoot* XSLTEngineImpl::getStylesheetRoot | ( | ) | const [virtual] |
virtual void XSLTEngineImpl::setStylesheetRoot | ( | const StylesheetRoot * | theStylesheet | ) | [virtual] |
Set the root stylesheet.
theStylesheet | pointer to new root stylesheet |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::setExecutionContext | ( | StylesheetExecutionContext * | theExecutionContext | ) | [virtual] |
Set the execution context.
theExecutionContext | pointer to new execution context. |
Implements XSLTProcessor.
static const XalanDOMString& XSLTEngineImpl::getXSLNameSpaceURL | ( | ) | [static] |
Retrieve the URI for the current XSL namespace, for example, "http://www.w3.org/1999/XSL/Transform".
static const XalanDOMString& XSLTEngineImpl::getXalanXSLNameSpaceURL | ( | ) | [static] |
Special Xalan namespace for built-in extensions.
bool XSLTEngineImpl::getQuietConflictWarnings | ( | ) | const |
Whether to warn about pattern match conflicts.
virtual void XSLTEngineImpl::message | ( | const XalanDOMString & | msg, | |
const XalanNode * | sourceNode = 0 , |
|||
const ElemTemplateElement * | styleNode = 0 | |||
) | const [virtual] |
Report a message.
msg | text of message to output | |
sourceNode | node in source where message occurred | |
styleNode | node in stylesheet where message occurred |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::message | ( | const XalanDOMString & | msg, | |
const LocatorType & | locator, | |||
const XalanNode * | sourceNode = 0 | |||
) | const [virtual] |
Report a message.
msg | text of message to output | |
locator | A LocatorType for error reporting | |
sourceNode | node in source where message occurred |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::warn | ( | const XalanDOMString & | msg, | |
const XalanNode * | sourceNode = 0 , |
|||
const ElemTemplateElement * | styleNode = 0 | |||
) | const [virtual] |
Report a warning.
msg | text of message to output | |
sourceNode | node in source where warning occurred | |
styleNode | node in stylesheet where warning occurred |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::warn | ( | const XalanDOMString & | msg, | |
const LocatorType & | locator, | |||
const XalanNode * | sourceNode = 0 | |||
) | const [virtual] |
Report a warning.
msg | text of message to output | |
locator | A LocatorType for error reporting | |
sourceNode | node in source where error occurred |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::error | ( | const XalanDOMString & | msg, | |
const XalanNode * | sourceNode = 0 , |
|||
const ElemTemplateElement * | styleNode = 0 | |||
) | const [virtual] |
Report an error and throw an exception.
msg | text of message to output | |
sourceNode | node in source where error occurred | |
styleNode | node in stylesheet where error occurred |
Implements XSLTProcessor.
virtual void XSLTEngineImpl::error | ( | const XalanDOMString & | msg, | |
const LocatorType & | locator, | |||
const XalanNode * | sourceNode = 0 | |||
) | const [virtual] |
Report an error and throw an exception.
msg | text of message to output | |
locator | A LocatorType for error reporting | |
sourceNode | node in source where error occurred |
Implements XSLTProcessor.
const XalanDOMString* XSLTEngineImpl::getResultNamespaceForPrefix | ( | const XalanDOMString & | prefix | ) | const |
Retrieve the result namespace corresponding to a prefix.
prefix | prefix for namespace |
const XalanDOMString* XSLTEngineImpl::getResultPrefixForNamespace | ( | const XalanDOMString & | theNamespace | ) | const |
Retrieve the result prefix corresponding to a namespace.
theNamespace | namespace for prefix |
bool XSLTEngineImpl::isPendingResultPrefix | ( | const XalanDOMString & | thePrefix | ) | const |
Determine whether or not a prefix is in use on the pending element or the pending attributes.
thePrefix | prefix for namespace |
double XSLTEngineImpl::evalMatchPatternStr | ( | const XalanDOMString & | str, | |
XalanNode * | context, | |||
XPathExecutionContext & | executionContext | |||
) |
Evaluate an xpath string and return the result as a numberic score.
str | string to evaluate | |
context | context node | |
executionContext | current execution context |
const XPath* XSLTEngineImpl::createMatchPattern | ( | const XalanDOMString & | str, | |
const PrefixResolver & | resolver | |||
) |
void XSLTEngineImpl::returnXPath | ( | const XPath * | xpath | ) |
Return the xpath created by createXPath() or createMatchPattern().
xpath | The XPath to return. |
void XSLTEngineImpl::copyNamespaceAttributes | ( | const XalanNode & | src | ) |
Copy XMLNS: attributes in if not already in scope.
src | source node |
const XObjectPtr XSLTEngineImpl::evalXPathStr | ( | const XalanDOMString & | str, | |
XPathExecutionContext & | executionContext | |||
) |
Evaluate an xpath string and return the result.
str | string to evaluate | |
executionContext | current execution context |
const XObjectPtr XSLTEngineImpl::evalXPathStr | ( | const XalanDOMString & | str, | |
XalanNode * | contextNode, | |||
const PrefixResolver & | prefixResolver, | |||
XPathExecutionContext & | executionContext | |||
) |
Evaluate an xpath string and return the result.
str | string to evaluate | |
contextNode | context node | |
prefixResolver | prefix resolver to use | |
executionContext | current execution context |
const XObjectPtr XSLTEngineImpl::evalXPathStr | ( | const XalanDOMString & | str, | |
XalanNode * | contextNode, | |||
const XalanElement & | prefixResolver, | |||
XPathExecutionContext & | executionContext | |||
) |
Evaluate an xpath string and return the result.
str | string to evaluate | |
contextNode | context node | |
prefixResolver | prefix resolver to use | |
executionContext | current execution context |
void XSLTEngineImpl::copyAttributeToTarget | ( | const XalanDOMString & | attrName, | |
const XalanDOMString & | attrValue, | |||
AttributeListImpl & | attrList | |||
) |
Copy an attribute to an AttributeListImpl.
attrName | The name of the attribute | |
attrValue | The value of the attribute | |
attrList | The attribute list added to |
XPathFactory& XSLTEngineImpl::getXPathFactory | ( | ) |
XPathProcessor& XSLTEngineImpl::getXPathProcessor | ( | ) |
virtual void XSLTEngineImpl::reset | ( | ) | [virtual] |
Reset the state.
This needs to be called after a process() call is invoked, if the processor is to be used again.
Implements XSLTProcessor.
XPathEnvSupport& XSLTEngineImpl::getXPathEnvSupport | ( | ) |
void XSLTEngineImpl::setProblemListener | ( | ProblemListener * | l | ) |
Set the problem listener property.
The XSL class can have a single listener that can be informed of errors and warnings, and can normally control if an exception is thrown or not (or the problem listeners can throw their own RuntimeExceptions).
l | pointer to ProblemListener interface |
ProblemListener* XSLTEngineImpl::getProblemListener | ( | ) | const |
Get the problem listener property.
The XSL class can have a single listener that can be informed of errors and warnings, and can normally control if an exception is thrown or not (or the problem listeners can throw their own RuntimeExceptions).
void XSLTEngineImpl::pushOutputContext | ( | FormatterListener * | theListener | ) |
void XSLTEngineImpl::popOutputContext | ( | ) |
bool XSLTEngineImpl::getHasPendingStartDocument | ( | ) | const |
void XSLTEngineImpl::setHasPendingStartDocument | ( | bool | b | ) |
bool XSLTEngineImpl::getMustFlushPendingStartDocument | ( | ) | const |
void XSLTEngineImpl::setMustFlushPendingStartDocument | ( | bool | b | ) |
const AttributeListType& XSLTEngineImpl::getPendingAttributes | ( | ) | const |
Get the list of attributes yet to be processed.
void XSLTEngineImpl::setPendingAttributes | ( | const AttributeListType & | pendingAttributes | ) |
Set the list of attributes yet to be processed.
pendingAttributes | The attribute list |
void XSLTEngineImpl::replacePendingAttribute | ( | const XalanDOMChar * | theName, | |
const XalanDOMChar * | theNewType, | |||
const XalanDOMChar * | theNewValue | |||
) |
Replace the contents of a pending attribute.
theName | name of attribute | |
theNewType | type of attribute | |
theNewValue | new value of attribute |
bool XSLTEngineImpl::isElementPending | ( | ) | const |
const XalanDOMString& XSLTEngineImpl::getPendingElementName | ( | ) | const |
Retrieve name of the pending element currently being processed.
void XSLTEngineImpl::setPendingElementName | ( | const XalanDOMString & | elementName | ) |
Changes the currently pending element name.
elementName | new name of element |
void XSLTEngineImpl::setPendingElementName | ( | const XalanDOMChar * | elementName | ) |
const LocatorType* XSLTEngineImpl::getLocatorFromStack | ( | ) | const |
Get the locator from the top of the locator stack.
void XSLTEngineImpl::pushLocatorOnStack | ( | const LocatorType * | locator | ) |
Push a locator on to the locator stack.
A | pointer to the Locator to push. |
void XSLTEngineImpl::popLocatorStack | ( | ) |
Pop the locator from the top of the locator stack.
const AttributeListImpl& XSLTEngineImpl::getPendingAttributesImpl | ( | ) | const [protected] |
Get the list of attributes yet to be processed.
AttributeListImpl& XSLTEngineImpl::getPendingAttributesImpl | ( | ) | [protected] |
Get the list of attributes yet to be processed.
void XSLTEngineImpl::setPendingAttributesImpl | ( | const AttributeListType & | pendingAttributes | ) | [protected] |
Set the list of attributes yet to be processed.
pendingAttributes | The attribute list |
const XalanDOMString& XSLTEngineImpl::getPendingElementNameImpl | ( | ) | const [protected] |
Retrieve name of the pending element currently being processed.
XalanDOMString& XSLTEngineImpl::getPendingElementNameImpl | ( | ) | [protected] |
Retrieve name of the pending element currently being processed.
void XSLTEngineImpl::setPendingElementNameImpl | ( | const XalanDOMString & | elementName | ) | [protected] |
Changes the currently pending element name.
elementName | new name of element |
void XSLTEngineImpl::setPendingElementNameImpl | ( | const XalanDOMChar * | elementName | ) | [protected] |
Changes the currently pending element name.
elementName | new name of element |
bool XSLTEngineImpl::getHasPendingStartDocumentImpl | ( | ) | const [protected] |
void XSLTEngineImpl::setHasPendingStartDocumentImpl | ( | bool | b | ) | [protected] |
bool XSLTEngineImpl::getMustFlushPendingStartDocumentImpl | ( | ) | const [protected] |
void XSLTEngineImpl::setMustFlushPendingStartDocumentImpl | ( | bool | b | ) | [protected] |
FormatterListener* XSLTEngineImpl::getFormatterListenerImpl | ( | ) | const [protected] |
void XSLTEngineImpl::setFormatterListenerImpl | ( | FormatterListener * | flistener | ) | [protected] |
void XSLTEngineImpl::copyAttributesToAttList | ( | const XalanNode & | node, | |
AttributeListImpl & | attList | |||
) | [protected] |
Copy the attributes from the XSL element to the created output element.
void XSLTEngineImpl::clearTopLevelParams | ( | ) |
Reset the vector of top level parameters.
The namespace that the result tree conforms to.
A null value indicates that result-ns is not used and there is no checking. A empty string indicates that the result tree conforms to the default namespace.
XalanDOMString XSLTEngineImpl::m_resultNameSpaceURL [protected] |
The URL that belongs to the result namespace.
XPathFactory& XSLTEngineImpl::m_xpathFactory [protected] |
XObjectFactory& XSLTEngineImpl::m_xobjectFactory [protected] |
const XPathProcessorPtrType XSLTEngineImpl::m_xpathProcessor [protected] |
BoolVectorType XSLTEngineImpl::m_cdataStack [protected] |
Stack of Booleans to keep track of if we should be outputting cdata instead of escaped text.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSLT Processor Version 1.10 |
|