tDOM

Check-in [e407c9fd00]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Use the new schema feature prefixns for namespace prefix resolution in local key constraint XPath expressions.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | localkey
Files: files | file ages | folders
SHA3-256: e407c9fd0080fa7bcb5448fa6c05b85d96ac19d63b4aed57f56f4bae314b9c73
User & Date: rolf 2019-05-10 00:49:22
Context
2019-05-10
13:05
Merged from schema. check-in: db1bcdb342 user: rolf tags: localkey
00:49
Use the new schema feature prefixns for namespace prefix resolution in local key constraint XPath expressions. check-in: e407c9fd00 user: rolf tags: localkey
00:40
Merge from schema. check-in: 508a776b44 user: rolf tags: localkey
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to generic/schema.c.

  3411   3411       char *errMsg = NULL;
  3412   3412   
  3413   3413       CHECK_SI
  3414   3414       CHECK_TOPLEVEL
  3415   3415       checkNrArgs (3,3,"Expected: <selector> <fieldlist>");
  3416   3416   
  3417   3417       if (xpathParse (Tcl_GetString (objv[1]), NULL, XPATH_EXPR,
  3418         -                    NULL, NULL, &s, &errMsg) < 0) {
         3418  +                    sdata->prefixns, NULL, &s, &errMsg) < 0) {
  3419   3419           SetResult3 ("Error in selector xpath: '", errMsg, "");
  3420   3420           FREE (errMsg);
  3421   3421           return TCL_ERROR;
  3422   3422       }
  3423   3423       if (processSchemaXPath (interp, s, 0, 1) != TCL_OK) {
  3424   3424           xpathFreeAst (s);
  3425   3425           return TCL_ERROR;