Compile match attributes of XSLT templates which are patterns of the form: chapter/section//footnote into an XPath expression tree.
This method can be called multiple times. Each new call removes the last compiled pattern or expression. The compiled results of the pattern become part of the state of the p6IXpathExpression object and can be evaluated against any XML tree by calling the eval() method below.
- Parameters
-
pPattern | [ in ] A step pattern used to test if a given XML node is can be described by the pattern. |
length | [ in ] Length of the string in pPattern. |
pContext | [ in ] Interface that provides compile time context for namespaces |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitializedg | A successful call to intialize() must be made before calling this funciton. |
P6R::eInvalidArg | pPattern is NULL or length is zero. |
P6R::eFail | When pPattern is the string "/". |