Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IXSLT::setRegexLimits ( P6UINT32  maxBackStack,
P6UINT32  maxBackTracks 
)
pure virtual

As default there are NO limits on the execution of a regular expression in an XPath expression.

These regular expressions can appear in several of the XML elements which define an XSLT style sheet. This method is essentially a "pass through" to the p6IRegex::setBackTrackLimits() method. If the caller wishes to define limits on the regex evaluation, then limits can be set with this call.

Note, that these limits are set at compile time (i.e, when the XSLT template is compiled). So for these to be effective this method must be called before the compileTemplates() method. This method can be called repeatedly for each new compile call.

Parameters
maxBackStack[ in ] maximum number of entries on the backtrack stack, a value of zero means no limit (which is the default).
maxBackTracks[ in ] maximum number of backtrack steps allowed in a regex evaluation, a value of zero means no limit (which is the default).
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.