Scan LocationPath SYNOPSYS [1] LocationPath ::= RelativeLocationPath | AbsoluteLocationPath [3] RelativeLocationPath ::= RelativeLocationPath '/' Step RETURN 1 - success 0 - failure */
| 1519 | 0 - failure |
| 1520 | */ |
| 1521 | static int my_xpath_parse_LocationPath(MY_XPATH *xpath) |
| 1522 | { |
| 1523 | Item *context= xpath->context; |
| 1524 | |
| 1525 | if (!xpath->context) |
| 1526 | xpath->context= xpath->rootelement; |
| 1527 | int rc= my_xpath_parse_RelativeLocationPath(xpath) || |
| 1528 | my_xpath_parse_AbsoluteLocationPath(xpath); |
| 1529 | |
| 1530 | xpath->item= xpath->context; |
| 1531 | xpath->context= context; |
| 1532 | return rc; |
| 1533 | } |
| 1534 | |
| 1535 | |
| 1536 | /* |
no test coverage detected