All Packages Previous Next
The following is the default behavior for this PLSQL XML parser:
PURPOSE
Returns a new processor instance
SYNTAX
FUNCTION newProcessor RETURN Processor;PARAMETERS
RETURNS
A new processor instance
COMMENTS
This function must be called before the default behavior of Processor can be changed and if other processor methods need to be used.
PURPOSE
Transforms input XML document using given DOMDocument and stylesheet
SYNTAX
PROCEDURE processXSL(p Processor, ss Stylesheet, xmldoc DOMDocument);PARAMETERS
p (IN)- processor instance ss (IN)- stylesheet instance xmldoc (IN)- xml document to be transformedRETURNS
COMMENTS
Any changes to the default processor behavior should be effected before calling this procedure.
An application error is raised if processing failed, for some reason.
PURPOSE
Transforms input XML document using given DOMDocumentFragment and stylesheet
SYNTAX
PROCEDURE processXSL(p Processor, ss Stylesheet, xmldoc DOMDocumentFragment);PARAMETERS
p (IN)- processor instance ss (IN)- stylesheet instance xmldoc (IN)- xml document fragment to be transformedRETURNS
COMMENTS
Any changes to the default processor behavior should be effected before calling this procedure.
An application error is raised if processing failed, for some reason.
PURPOSE
Turn warnings on or off
SYNTAX
PROCEDURE showWarnings(p Processor, yes BOOLEAN);PARAMETERS
p (IN)- processor instance yes (IN)- mode to set: TRUE - show warnings, FALSE - don't show warningsRETURNS
PURPOSE
Sets errors to be sent to the specified file
SYNTAX
PROCEDURE setErrorLog(p Processor, fileName VARCHAR2);PARAMETERS
p (IN)- processor instance fileName (IN)- complete path of the file to use as the error logRETURNS
PURPOSE
Create a new stylesheet using the given DOMDocument and reference URL
SYNTAX
FUNCTION newStylesheet(inp DOMDocument, ref VARCHAR2) RETURN Stylesheet;PARAMETERS
inp (IN)- input document to use for construction ref (IN)- reference urlRETURNS
PURPOSE
Create a new stylesheet using the given input and reference URLs
SYNTAX
FUNCTION newStylesheet(inp VARCHAR2, ref VARCHAR2) RETURN Stylesheet;PARAMETERS
inp (IN)- input url to use for construction ref (IN)- reference urlRETURNS
PURPOSE
Transforms a node in a DOM tree using the given stylesheet
SYNTAX
FUNCTION transformNode(n DOMNode, ss Stylesheet) RETURN DOMDocumentFragment;PARAMETERS
n (IN)- DOM Node to transform ss (IN)- stylesheet to useRETURNS
PURPOSE
Selects nodes from a DOM tree which match the given pattern
SYNTAX
FUNCTION selectNodes(n DOMNode, pattern VARCHAR2) RETURN DOMNodeList;PARAMETERS
n (IN)- DOM Node to transform pattern (IN)- pattern to useRETURNS
PURPOSE
Selects the first node from the tree that matches the given pattern
SYNTAX
FUNCTION selectSingleNodes(n DOMNode, pattern VARCHAR2) RETURN DOMNode;PARAMETERS
n (IN)- DOM Node to transform pattern (IN)- pattern to useRETURNS
PURPOSE
Retrieves the value of the first node from the tree that matches the given pattern
SYNTAX
FUNCTION valueOf(n DOMNode, pattern VARCHAR2) RETURN VARCHAR2;PARAMETERS
n (IN)- DOM Node to transform pattern (IN)- pattern to useRETURNS
PURPOSE
Sets a top level paramter in the stylesheet
SYNTAX
PROCEDURE setParam(ss Stylesheet, name VARCHAR2, value VARCHAR2)PARAMETERS
ss (IN)- stylesheet name (IN)- name of the param value (IN)- value of the param
PURPOSE
Removes a top level stylesheet parameter
SYNTAX
PROCEDURE removeParam(ss Stylesheet, name VARCHAR2)PARAMETERS
ss (IN)- Stylesheet name (IN)- name of the parameter
PURPOSE
Resets the top-level stylesheet parameters
SYNTAX
PROCEDURE resetParams(ss Stylesheet)PARAMETERS
ss (IN)- Stylesheet
PURPOSE
Frees a Stylesheet object
SYNTAX
PROCEDURE freestylesheet(ss Stylesheet)PARAMETERS
ss (IN)- Stylesheet
PURPOSE
Frees a Processor object
SYNTAX
PROCEDURE freeProccessor(p Processor)PARAMETERS
p (IN)- Processor