OLD | NEW |
1 /* | 1 /* |
2 * keys.c: Implemetation of the keys support | 2 * keys.c: Implemetation of the keys support |
3 * | 3 * |
4 * Reference: | 4 * Reference: |
5 * http://www.w3.org/TR/1999/REC-xslt-19991116 | 5 * http://www.w3.org/TR/1999/REC-xslt-19991116 |
6 * | 6 * |
7 * See Copyright for the status of this software. | 7 * See Copyright for the status of this software. |
8 * | 8 * |
9 * daniel@veillard.com | 9 * daniel@veillard.com |
10 */ | 10 */ |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 " the current node and with a node list containing just x as the | 752 " the current node and with a node list containing just x as the |
753 * current node list" | 753 * current node list" |
754 */ | 754 */ |
755 xpctxt->contextSize = 1; | 755 xpctxt->contextSize = 1; |
756 xpctxt->proximityPosition = 1; | 756 xpctxt->proximityPosition = 1; |
757 | 757 |
758 for (i = 0; i < matchList->nodeNr; i++) { | 758 for (i = 0; i < matchList->nodeNr; i++) { |
759 cur = matchList->nodeTab[i]; | 759 cur = matchList->nodeTab[i]; |
760 if (! IS_XSLT_REAL_NODE(cur)) | 760 if (! IS_XSLT_REAL_NODE(cur)) |
761 continue; | 761 continue; |
| 762 ctxt->node = cur; |
762 xpctxt->node = cur; | 763 xpctxt->node = cur; |
763 /* | 764 /* |
764 * Process the 'use' of the xsl:key. | 765 * Process the 'use' of the xsl:key. |
765 * SPEC XSLT 1.0: | 766 * SPEC XSLT 1.0: |
766 * "The use attribute is an expression specifying the values of | 767 * "The use attribute is an expression specifying the values of |
767 * the key; the expression is evaluated once for each node that | 768 * the key; the expression is evaluated once for each node that |
768 * matches the pattern." | 769 * matches the pattern." |
769 */ | 770 */ |
770 if (useRes != NULL) | 771 if (useRes != NULL) |
771 xmlXPathFreeObject(useRes); | 772 xmlXPathFreeObject(useRes); |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 * @idoc: a XSLT document | 926 * @idoc: a XSLT document |
926 * | 927 * |
927 * Free the keys associated to a document | 928 * Free the keys associated to a document |
928 */ | 929 */ |
929 void | 930 void |
930 xsltFreeDocumentKeys(xsltDocumentPtr idoc) { | 931 xsltFreeDocumentKeys(xsltDocumentPtr idoc) { |
931 if (idoc != NULL) | 932 if (idoc != NULL) |
932 xsltFreeKeyTableList(idoc->keys); | 933 xsltFreeKeyTableList(idoc->keys); |
933 } | 934 } |
934 | 935 |
OLD | NEW |