1 | <?php |
||
14 | class TemplateParser |
||
15 | { |
||
16 | /** |
||
17 | * XSL namespace |
||
18 | */ |
||
19 | const XMLNS_XSL = 'http://www.w3.org/1999/XSL/Transform'; |
||
20 | |||
21 | /** |
||
22 | * @var string Regexp that matches the names of all void elements |
||
23 | * @link http://www.w3.org/TR/html-markup/syntax.html#void-elements |
||
24 | */ |
||
25 | public static $voidRegexp = '/^(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/Di'; |
||
26 | |||
27 | /** |
||
28 | * Parse a template into an internal representation |
||
29 | * |
||
30 | * @param string $template Source template |
||
31 | * @return DOMDocument Internal representation |
||
32 | */ |
||
33 | public static function parse($template) |
||
39 | |||
40 | /** |
||
41 | * Parse an XPath expression that is composed entirely of equality tests between a variable part |
||
42 | * and a constant part |
||
43 | * |
||
44 | * @param string $expr |
||
45 | * @return array|false |
||
46 | */ |
||
47 | public static function parseEqualityExpr($expr) |
||
51 | } |