|
| XSLTEngineImpl (MemoryManager &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.
|
|
virtual | ~XSLTEngineImpl () |
|
MemoryManager & | getMemoryManager () const |
|
MemoryManager & | getMemoryManager () |
|
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode) |
| Function that is called when a problem event occurs.
|
|
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode) |
| Function that is called when a problem event occurs.
|
|
virtual void | process (const XSLTInputSource &inputSource, const XSLTInputSource &stylesheetSource, XSLTResultTarget &outputTarget, StylesheetConstructionContext &constructionContext, StylesheetExecutionContext &executionContext) |
| Transform the source tree to the output in the given result tree target.
|
|
virtual void | process (const XSLTInputSource &inputSource, XSLTResultTarget &outputTarget, StylesheetExecutionContext &executionContext) |
| Transform the source tree to the output in the given result tree target.
|
|
virtual StylesheetRoot * | processStylesheet (const XSLTInputSource &stylesheetSource, StylesheetConstructionContext &constructionContext) |
| Given a stylesheet input source, compile the stylesheet into an internal representation.
|
|
virtual StylesheetRoot * | processStylesheet (const XalanDOMString &xsldocURLString, StylesheetConstructionContext &constructionContext) |
| Given a URI to an XSL stylesheet, compile the stylesheet into an internal representation.
|
|
virtual XalanNode * | getSourceTreeFromInput (const XSLTInputSource &inputSource) |
| Given an input source, get the source tree.
|
|
virtual void | resolveTopLevelParams (StylesheetExecutionContext &executionContext) |
| Resolve the params that were pushed by the caller.
|
|
virtual XMLParserLiaison & | getXMLParserLiaison () const |
| Get the XML Parser Liaison that this processor uses.
|
|
virtual void | getUniqueNamespaceValue (XalanDOMString &theValue) |
| Generate a random namespace prefix guaranteed to be unique.
|
|
virtual void | setStylesheetParam (const XalanDOMString &key, const XalanDOMString &expression) |
| Set a top-level parameter, which the stylesheet can access with a top-level xsl:param.
|
|
virtual void | setStylesheetParam (const XalanDOMString &key, XObjectPtr value) |
| Set a top-level parameter, which the stylesheet can access with a top-level xsl:param.
|
|
virtual void | clearStylesheetParams () |
| Clear any stylesheet params.
|
|
virtual FormatterListener * | getFormatterListener () const |
| Get the current formatter listener.
|
|
virtual void | setFormatterListener (FormatterListener *flistener) |
| Set the current formatter listener.
|
|
virtual size_type | getTraceListeners () const |
| Determine the number of trace listeners.
|
|
virtual void | addTraceListener (TraceListener *tl) |
| Add a trace listener for the purposes of debugging and diagnosis.
|
|
virtual void | removeTraceListener (TraceListener *tl) |
| Remove a trace listener.
|
|
virtual void | fireGenerateEvent (const GenerateEvent &ge) |
| Fire a generate event.
|
|
virtual void | fireTraceEvent (const TracerEvent &te) |
| Fire a trace event.
|
|
virtual void | fireSelectEvent (const SelectionEvent &se) |
| Fire a selection event.
|
|
virtual bool | getTraceSelects () const |
| If this is set to true, simple traces of template calls are made.
|
|
virtual void | setTraceSelects (bool b) |
|
void | traceSelect (StylesheetExecutionContext &executionContext, const ElemTemplateElement &theTemplate, const NodeRefListBase &nl, const XPath *xpath) const |
| Compose a diagnostic trace of the current selection.
|
|
virtual void | setQuietConflictWarnings (bool b) |
| If the quietConflictWarnings property is set to true, warnings about pattern conflicts won't be printed to the diagnostics stream.
|
|
virtual void | setDiagnosticsOutput (PrintWriter *pw) |
| If this is set, diagnostics will be written to the m_diagnosticsPrintWriter stream.
|
|
virtual const XalanDOMString * | getNamespaceForPrefix (const XalanDOMString &prefix) const |
| Retrieve a namespace corresponding to a prefix.
|
|
virtual const XalanDOMString & | getURI () const |
| Retrieve the base URI for the resolver.
|
|
XalanDocument * | parseXML (const XalanDOMString &urlString, DocumentHandler *docHandler, XalanDocument *docToRegister, ErrorHandler *theErrorHandler=0) |
| Read in the XML file, either producing a Document or calling SAX events, and register the document in a table.
|
|
XalanDocument * | parseXML (const InputSource &inputSource, DocumentHandler *docHandler, XalanDocument *docToRegister, ErrorHandler *theErrorHandler=0) |
| Read in the XML file, either producing a Document or calling SAX events, and register the document in a table.
|
|
Stylesheet * | 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.
|
|
void | flushPending () |
| Flush the pending element.
|
|
void | addResultNamespaceDecl (const XalanDOMString &prefix, const XalanDOMString &namespaceVal) |
| Add a namespace declaration to the namespace stack.
|
|
void | addResultNamespaceDecl (const XalanDOMString &prefix, const XalanDOMChar *namespaceVal, size_type len) |
| Add a namespace declaration to the namespace stack.
|
|
void | addResultAttribute (AttributeListImpl &attList, const XalanDOMString &aname, const XalanDOMString &value, bool fromCopy=false, const Locator *locator=0) |
| Add attribute to attribute list, and if it is a namespace, add it to the namespaces stack.
|
|
void | addResultAttribute (AttributeListImpl &attList, const XalanDOMString &aname, const XalanDOMChar *value, bool fromCopy=false, const Locator *locator=0) |
| Add attribute to attribute list, and if it is a namespace, add it to the namespaces stack.
|
|
void | addResultAttribute (AttributeListImpl &attList, const XalanDOMString &aname, const XalanDOMChar *value, size_type theLength, bool fromCopy=false, const Locator *locator=0) |
| Add attribute to attribute list, and if it is a namespace, add it to the namespaces stack.
|
|
void | addResultAttribute (const XalanDOMString &aname, const XalanDOMChar *value, bool fromCopy=false, const Locator *locator=0) |
| Add attribute to pending attributes list, and if it is a namespace, add it to the namespaces stack.
|
|
void | addResultAttribute (const XalanDOMString &aname, const XalanDOMString &value, bool fromCopy=false, const Locator *locator=0) |
| Add attribute to pending attributes list, and if it is a namespace, add it to the namespaces stack.
|
|
void | reportDuplicateNamespaceNodeError (const XalanDOMString &theName, const Locator *locator) |
| Report an error copying a duplicate namespace node.
|
|
void | setDocumentLocator (const Locator *locator) |
|
void | startDocument () |
|
void | endDocument () |
|
void | startElement (const XalanDOMChar *name, AttributeListType &atts) |
|
void | endElement (const XalanDOMChar *name) |
|
void | characters (const XalanDOMChar *ch, size_type length) |
|
void | ignorableWhitespace (const XalanDOMChar *ch, size_type length) |
|
void | processingInstruction (const XalanDOMChar *target, const XalanDOMChar *data) |
|
void | resetDocument () |
|
void | characters (const XalanDOMChar *ch, size_type start, size_type length) |
| Receive notification of character data.
|
|
void | characters (const XalanNode &node) |
| Send character data from the node to the result tree.
|
|
void | characters (const XObjectPtr &xobject) |
| Send character data from an XObject to the result tree.
|
|
void | startElement (const XalanDOMChar *name) |
| Receive notification of the beginning of an element with an empty attribute list.
|
|
void | charactersRaw (const XalanDOMChar *ch, size_type start, size_type length) |
| Receive notification of character data.
|
|
void | charactersRaw (const XalanNode &node) |
| Send raw character data from the node to the result tree.
|
|
void | charactersRaw (const XObjectPtr &xobject) |
| Send raw character data from an XObject to the result tree.
|
|
void | comment (const XalanDOMChar *data) |
| Called when a Comment is to be constructed.
|
|
void | entityReference (const XalanDOMChar *data) |
| Receive notification of a entityReference.
|
|
void | cdata (const XalanDOMChar *ch, size_type start, size_type length) |
| Receive notification of cdata.
|
|
void | cloneToResultTree (const XalanNode &node, bool cloneTextNodesOnly, const Locator *locator) |
| Clone a node to the result tree.
|
|
void | cloneToResultTree (const XalanNode &node, XalanNode::NodeType nodeType, bool overrideStrip, bool shouldCloneAttributes, bool cloneTextNodesOnly, const Locator *locator) |
| Clone a node to the result tree.
|
|
void | outputToResultTree (const XObject &value, bool outputTextNodesOnly, const Locator *locator) |
| Output an object to the result tree by doing the right conversions.
|
|
void | outputResultTreeFragment (const XObject &theTree, bool outputTextNodesOnly, const Locator *locator) |
| Given a result tree fragment, walk the tree and output it to the result stream.
|
|
void | outputResultTreeFragment (const XalanDocumentFragment &theTree, bool outputTextNodesOnly, const Locator *locator) |
| Given a result tree fragment, walk the tree and output it to the result stream.
|
|
virtual const StylesheetRoot * | getStylesheetRoot () const |
| Retrieve the root stylesheet.
|
|
virtual void | setStylesheetRoot (const StylesheetRoot *theStylesheet) |
| Set the root stylesheet.
|
|
virtual void | setExecutionContext (StylesheetExecutionContext *theExecutionContext) |
| Set the execution context.
|
|
bool | getQuietConflictWarnings () const |
| Whether to warn about pattern match conflicts.
|
|
const XalanDOMString * | getResultNamespaceForPrefix (const XalanDOMString &prefix) const |
| Retrieve the result namespace corresponding to a prefix.
|
|
const XalanDOMString * | getResultPrefixForNamespace (const XalanDOMString &theNamespace) const |
| Retrieve the result prefix corresponding to a namespace.
|
|
bool | isPendingResultPrefix (const XalanDOMString &thePrefix) const |
| Determine whether or not a prefix is in use on the pending element or the pending attributes.
|
|
double | evalMatchPatternStr (const XalanDOMString &str, XalanNode *context, XPathExecutionContext &executionContext) |
| Evaluate an xpath string and return the result as a numberic score.
|
|
const XPath * | createMatchPattern (const XalanDOMString &str, const PrefixResolver &resolver) |
| Create and initialize an xpath and return it.
|
|
void | returnXPath (const XPath *xpath) |
| Return the xpath created by createXPath() or createMatchPattern().
|
|
void | copyNamespaceAttributes (const XalanNode &src) |
| Copy XMLNS: attributes in if not already in scope.
|
|
const XObjectPtr | evalXPathStr (const XalanDOMString &str, XPathExecutionContext &executionContext) |
| Evaluate an xpath string and return the result.
|
|
const XObjectPtr | evalXPathStr (const XalanDOMString &str, XalanNode *contextNode, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext) |
| Evaluate an xpath string and return the result.
|
|
const XObjectPtr | evalXPathStr (const XalanDOMString &str, XalanNode *contextNode, const XalanElement &prefixResolver, XPathExecutionContext &executionContext) |
| Evaluate an xpath string and return the result.
|
|
void | copyAttributeToTarget (const XalanDOMString &attrName, const XalanDOMString &attrValue, AttributeListImpl &attrList) |
| Copy an attribute to an AttributeListImpl.
|
|
XPathFactory & | getXPathFactory () |
| Get the factory for making xpaths.
|
|
XPathProcessor & | getXPathProcessor () |
| Get the XPath processor object.
|
|
virtual void | reset () |
| Reset the state.
|
|
XPathEnvSupport & | getXPathEnvSupport () |
| Retrieve the XPath environment support object.
|
|
void | setProblemListener (ProblemListener *l) |
| Set the problem listener property.
|
|
ProblemListener * | getProblemListener () const |
| Get the problem listener property.
|
|
void | pushOutputContext (FormatterListener *theListener) |
|
void | popOutputContext () |
|
bool | getHasPendingStartDocument () const |
|
void | setHasPendingStartDocument (bool b) |
|
bool | getMustFlushPendingStartDocument () const |
|
void | setMustFlushPendingStartDocument (bool b) |
|
const AttributeListType & | getPendingAttributes () const |
| Get the list of attributes yet to be processed.
|
|
void | setPendingAttributes (const AttributeListType &pendingAttributes) |
| Set the list of attributes yet to be processed.
|
|
void | replacePendingAttribute (const XalanDOMChar *theName, const XalanDOMChar *theNewType, const XalanDOMChar *theNewValue) |
| Replace the contents of a pending attribute.
|
|
bool | isElementPending () const |
|
const XalanDOMString & | getPendingElementName () const |
| Retrieve name of the pending element currently being processed.
|
|
void | setPendingElementName (const XalanDOMString &elementName) |
| Changes the currently pending element name.
|
|
void | setPendingElementName (const XalanDOMChar *elementName) |
|
const Locator * | getLocatorFromStack () const |
| Get the locator from the top of the locator stack.
|
|
void | pushLocatorOnStack (const Locator *locator) |
| Push a locator on to the locator stack.
|
|
void | popLocatorStack () |
| Pop the locator from the top of the locator stack.
|
|
void | clearTopLevelParams () |
| Reset the vector of top level parameters.
|
|
| XSLTProcessor () |
|
virtual | ~XSLTProcessor () |
|
| ProblemListenerBase () |
|
virtual | ~ProblemListenerBase () |
|
| PrefixResolver () |
|
| PrefixResolver (const PrefixResolver &) |
|
virtual | ~PrefixResolver () |
|
It's the responsibility of the XSLTEngineImpl class, collaborating with the XML parser liaison, the DOM, and the XPath engine, to transform a source tree of nodes into a result tree according to instructions and templates specified by a stylesheet tree.
The process method is the primary public entry points.
If you reuse the processor instance, you should call reset() between calls.
Definition at line 131 of file XSLTEngineImpl.hpp.