* xmlXPtrOriginFunction: * @ctxt: the XPointer Parser context * @nargs: the number of args * * Function implementing origin() operation * as described in 5.4.3 */
| 1737 | * as described in 5.4.3 |
| 1738 | */ |
| 1739 | static void |
| 1740 | xmlXPtrOriginFunction(xmlXPathParserContextPtr ctxt, int nargs) { |
| 1741 | CHECK_ARITY(0); |
| 1742 | |
| 1743 | if (ctxt->context->origin == NULL) |
| 1744 | XP_ERROR(XPTR_SYNTAX_ERROR); |
| 1745 | |
| 1746 | valuePush(ctxt, xmlXPtrNewLocationSetNodes(ctxt->context->origin, NULL)); |
| 1747 | } |
| 1748 | |
| 1749 | /** |
| 1750 | * xmlXPtrStartPointFunction: |
nothing calls this directly
no test coverage detected