Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: third_party/libxslt/libxslt/keys.c

Issue 1848793005: Roll libxslt to 891681e3e948f31732229f53cb6db7215f740fc7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libxslt/libxslt/imports.c ('k') | third_party/libxslt/libxslt/libxslt.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/libxslt/libxslt/imports.c ('k') | third_party/libxslt/libxslt/libxslt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698