diff --git a/src/Configurator/TemplateChecks/AbstractXSLSupportCheck.php b/src/Configurator/TemplateChecks/AbstractXSLSupportCheck.php index b5db0adf38..aef37625bc 100644 --- a/src/Configurator/TemplateChecks/AbstractXSLSupportCheck.php +++ b/src/Configurator/TemplateChecks/AbstractXSLSupportCheck.php @@ -38,6 +38,9 @@ public function check(DOMElement $template, Tag $tag): void $this->checkXPathExpressions($template); } + /** + * Check given XPath expression + */ protected function checkXPathExpression(string $expr): void { preg_match_all('("[^"]*+"|\'[^\']*+\'|(*:fn)[-\\w]++(?=\\s*\\())', $expr, $m); @@ -54,6 +57,9 @@ protected function checkXPathExpression(string $expr): void } } + /** + * Check all XPath expressions in given template + */ protected function checkXPathExpressions(DOMElement $template): void { foreach ($this->getXPathExpressions($template) as $expr) @@ -62,6 +68,9 @@ protected function checkXPathExpressions(DOMElement $template): void } } + /** + * Check all XSL elements in given template + */ protected function checkXslElements(DOMElement $template): void { $xpath = new DOMXPath($template->ownerDocument); @@ -81,6 +90,9 @@ protected function checkXslElements(DOMElement $template): void } } + /** + * Return all XPath expressions in given template + */ protected function getXPathExpressions(DOMElement $template): array { $exprs = [];