3849,7 → 3849,7 |
$step = '.'; |
$axis['axis'] = 'self'; |
$axis['node-test'] = '*'; |
break $parseBlock; |
break; |
} |
|
if ($step == '..') { |
3856,7 → 3856,7 |
// Select the parent axis. |
$axis['axis'] = 'parent'; |
$axis['node-test'] = '*'; |
break $parseBlock; |
break; |
} |
|
/////////////////////////////////////////////////// |
3908,7 → 3908,7 |
if ($step == '*') { |
// Use the child axis and select all children. |
$axis['node-test'] = '*'; |
break $parseBlock; |
break; |
} |
|
// ### I'm pretty sure our current handling of cdata is a fudge, and we should |
3916,7 → 3916,7 |
if ($step == "text()") { |
// Handle the text node |
$axis["node-test"] = "cdata"; |
break $parseBlock; |
break; |
} |
|
// There are a few node tests that we match verbatim. |
3925,7 → 3925,7 |
|| $step == "text()" |
|| $step == "processing-instruction") { |
$axis["node-test"] = $step; |
break $parseBlock; |
break; |
} |
|
// processing-instruction() is allowed to take an argument, but if it does, the argument |
3932,7 → 3932,7 |
// is a literal, which we will have parsed out to $[number]. |
if (preg_match(":processing-instruction\(\$\d*\):", $step)) { |
$axis["node-test"] = $step; |
break $parseBlock; |
break; |
} |
|
// The only remaining way this can be a step, is if the remaining string is a simple name |
3961,7 → 3961,7 |
// Not currently recursing |
$LastFailedStep = ''; |
$LastFailedContext = ''; |
break $parseBlock; |
break; |
} |
|
// It's not a node then, we must treat it as a PrimaryExpr |