Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IXpathExpression::compileTemplateMatch ( P6WCHAR pPattern,
P6UINT32  length,
p6IXMLCompile pContext 
)
pure virtual

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
SuccessP6R::eOk 
FailureP6R::eNotInitializedgA successful call to intialize() must be made before calling this funciton.
P6R::eInvalidArgpPattern is NULL or length is zero.
P6R::eFailWhen pPattern is the string "/".