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

History of tests/schema.test

2019-08-22
21:23
Made more info about the validation state available for recover scripts. file: [3bff97ac50] check-in: [2c03ac9cd6] user: rolf branch: wip, size: 128748
2019-08-17
13:54
wip file: [a35f7f6eec] check-in: [0625bcaa4c] user: rolf branch: wip, size: 128685
01:40
wip file: [2e4163346d] check-in: [f8161e258e] user: rolf branch: wip, size: 128581
2019-08-11
01:35
Added xsd like boolean text constraint. file: [3caf840772] check-in: [c24f4e9aeb] user: rolf branch: schema, size: 127732
2019-08-06
23:11
Fixed bug introduced with prefixns: the shortcuts from prefixns are only used for schema definiton; they mean nothing for prefix/namespace in the xml input. file: [a05d50f5a9] check-in: [40671ee8c3] user: rolf branch: schema, size: 125808
2019-07-31
22:17
Hardened isodate. file: [d77efababd] check-in: [4fed50bd75] user: rolf branch: schema, size: 125198
2019-07-23
23:54
Gardening around. Moved generation of all schmea related Tcl commands to tDOM_SchemaInit(). Moved the method 'status' as 'validationstatus' (alias 'vstatus') under the 'info' method and used the opportunity to start to define the schema command method info. file: [e1fd700e7f] check-in: [e5493b6b50] user: rolf branch: schema, size: 125067
2019-06-18
22:18
An example of different 'styles' of a certain type: The 'interger' text constraint now has two interpretation of an integer - what Tcl_GetInt() accept and what a valid xsd:integer is, which is quite different. file: [fa8fb35f0f] check-in: [9a589897fb] user: rolf branch: schema, size: 124934
2019-06-15
01:04
Enhanced the any content command to optionally match only any element in a given namespace. file: [91cdbee98b] check-in: [728f51431a] user: rolf branch: schema, size: 123867
2019-06-05
17:29
Bug fix in case of domuniqe with elements as fields. file: [d5b3942866] check-in: [34e75df5dd] user: rolf branch: schema, size: 123003
2019-05-30
22:38
Added simple keyref feature to keyspaces. file: [ef81f3143b] check-in: [1f7b8a81c1] user: rolf branch: keyspaces, size: 122477
01:02
If recovering from the error "text doesn't match constraint" pretent the text has matched so the not matched required text cp isn't reported again as missing text. file: [707a6890ff] check-in: [39651ce911] user: rolf branch: keyspaces, size: 121581
2019-05-29
12:57
Starts to actually do something. Still some way to go. file: [59e93880d3] check-in: [6eb6891a1e] user: rolf branch: keyspaces, size: 119486
2019-05-22
22:22
Added the XPath step "." as allowed step in restricted schema XPath Expressions. file: [b49c64e441] check-in: [ab18265ee0] user: rolf branch: localkey, size: 121133
2019-05-21
22:37
Merged from schema. file: [4cda3b4ebb] check-in: [72ce7820c1] user: rolf branch: localkey, size: 121124
22:24
Added optional flag argument to domunique. Currently only flag controls, if empty field node sets are ignored (or seen as the empty string). file: [2ad46a0c78] check-in: [6a51d9897b] user: rolf branch: domlocalkey, size: 118383
16:21
Adding DOM tree postvalidation (only) local key constraints along the lines of xsd unqiue with selector and list of fields but with no restrictions on the XPath expressions (other then resulting a node set in case of selector and a result set with one node in case of field XPath expression). file: [9fa88f48a3] check-in: [f645e5dfe1] user: rolf branch: domlocalkey, size: 117692
2019-05-16
22:25
Still working on digest local key constraint specification: Now support union "Path ( '|' Path )*" for selector and fields. Distinct between element and attribute selecting steps because of the distict spaces of the names. file: [8359764f5c] check-in: [69c262ef77] user: rolf branch: localkey, size: 117566
2019-05-15
00:16
Enhanced the unique schema contraint: the fields argument is now expected to be a proper tcl list with their elements as the field XPath expressions. file: [a4f1dfc494] check-in: [abc0715900] user: rolf branch: localkey, size: 117173
2019-05-14
20:04
Merge from schema. file: [616acf183b] check-in: [dc36b35000] user: rolf branch: localkey, size: 116251
20:02
Enhanced the text constraint commands id/idref: Beside the one doc wide ID space there are now additional other named doc wide ID/IDREF spaces possible. Each of them work along the unnamed doc wide ID space. file: [e82a05469c] check-in: [6b550b98f8] user: rolf branch: schema, size: 114825
2019-05-11
01:41
Save work. file: [d3f24e979e] check-in: [3ce85f17a5] user: rolf branch: localkey, size: 114223
2019-05-10
13:41
Merge from schema. file: [d7ac7d5208] check-in: [4bf39f2571] user: rolf branch: localkey, size: 113946
13:40
Fixed bug (invalid mem access) if a virtual constraint will be called under certain circumstances while looking if pcdata matches. file: [96713fe8cd] check-in: [4cc96fcd33] user: rolf branch: schema, size: 112797
13:05
Merged from schema. file: [adfa72cfb1] check-in: [db1bcdb342] user: rolf branch: localkey, size: 113357
13:04
Futher work on prefixns: allow it als top level command in define script. Changed semantic to first prefix/namespace mapping in prefixUriList wins, if there are several prefixes mapping to different namespaces. file: [fa65aea894] check-in: [a70c1d6c6e] user: rolf branch: schema, size: 112208
00:40
Merge from schema. file: [0d25937230] check-in: [508a776b44] user: rolf branch: localkey, size: 106368
00:36
Added method prefixns to schema cmds. This allows to point to namespace URIs by shortcuts or prefixes. file: [6251b39e39] check-in: [74a399d84f] user: rolf branch: schema, size: 105219
2019-05-09
19:16
Merged from schema. file: [0af16873dc] check-in: [4879bb492b] user: rolf branch: localkey, size: 102384
18:34
Test added. file: [d3dc5d5e1f] check-in: [968b411fd1] user: rolf branch: schema, size: 101235
14:27
wip file: [3f67aa4001] check-in: [b0e429ebf8] user: rolf branch: localkey, size: 101514
2019-05-07
22:52
Implementend restricted XPath expressions for local key selectors and fields. file: [c421a6283f] check-in: [918781e945] user: rolf branch: localkey, size: 101498
2019-05-06
23:18
Added text constrain cmd base64. file: [86593a852c] check-in: [68cd47d57c] user: rolf branch: schema, size: 100901
2019-05-04
12:35
Started work on subtree local unique/key/keyref. file: [b08c421bf0] check-in: [97b292828f] user: rolf branch: localkey, size: 101410
2019-05-02
16:53
Added text constraint commands id and idref. file: [cf76f6126d] check-in: [a886296dc3] user: rolf branch: schema, size: 100365
12:11
Done. file: [265366af43] check-in: [9a631db368] user: rolf branch: wip, size: 98396
2019-05-01
23:55
wip file: [67562a139f] check-in: [a155f2862c] user: rolf branch: wip, size: 97475
14:56
wip file: [7bd58628c4] check-in: [a858a6ac77] user: rolf branch: wip, size: 96681
2019-04-27
00:38
Added text constraint command strip which tests all text constraints in the evaluated argument with the text to test striped of all white space at start and end. file: [e86ac1c2ec] check-in: [b6738cb9c3] user: rolf branch: schema, size: 94916
2019-04-19
15:57
Still work on validation error recovering. file: [33880ab8f5] check-in: [a00292f6a2] user: rolf branch: wip, size: 94288
2019-04-16
23:28
Still work on validation error recovering. file: [352543bc38] check-in: [e1eaa5909b] user: rolf branch: wip, size: 94312
2019-04-15
23:20
More work on validation error recovering. file: [0b02c9b0db] check-in: [a5c155ee31] user: rolf branch: wip, size: 93974
2019-03-30
01:31
More gardening towards reportcmd. file: [86346e4c68] check-in: [7319d6926f] user: rolf branch: wip, size: 93976
2019-03-29
00:35
wip file: [c138dba982] check-in: [1f800e1c4b] user: rolf branch: wip, size: 94235
2019-03-23
15:20
Wip (not well working inbetween state). file: [b680c92f3b] check-in: [0da31f4fcb] user: rolf branch: wip, size: 94188
2019-03-20
16:00
Still wip. file: [db3ed88fb7] check-in: [3bf5b1e10d] user: rolf branch: wip, size: 92757
2019-03-09
15:09
wip file: [e1bab88320] check-in: [bfa5b4bab7] user: rolf branch: wip, size: 92382
2019-03-07
13:42
(This and the previous commit on this branch:) Changed the calling convention of the virtual contraints: Append the schema command name to the args given and evaluate that. Whatever data the virtual contraint need has to be requested inside the called script (most probably by the new [<schemacmd> info ...] method, which has to be enhanced over time to provide the information that may needed in practice by this. Added code to ensure a Tcl error in evaluated virtual event does pop up in the result of the schema command call. file: [f97801fb17] check-in: [71d80fea6e] user: rolf branch: virtualConstraints, size: 91980
00:05
Merged from schema. file: [6d1162dcf6] check-in: [f189f4695e] user: rolf branch: virtualConstraints, size: 91366
2019-03-06
13:34
More hardening and clarification of using a schema cmd inside one of the script arguments evaluated by itself. file: [55911ad220] check-in: [4cefb1db19] user: rolf branch: schema, size: 90325
2019-03-04
12:37
Hardened schema cmds againts deleting the command in one of its call out to Tcl by postponing the clientData cleanup until the outmost Tcl_Eval*() call has finished. file: [6cfbe10265] check-in: [2774ed6a5a] user: rolf branch: schema, size: 88149
2019-03-01
11:58
Added a -nocase flag to the text constraint command match (because it was easy). Small modification to the text constraint command isodate. It now accept years longer that four digits (as the xsd date types do). Added some more documentation. file: [e0fd40ba61] check-in: [fa18fb363f] user: rolf branch: schema, size: 87896
2019-02-28
01:31
Added attribute value constraining with text types. file: [a1d6403d02] check-in: [44ebaf2b3f] user: rolf branch: schema, size: 87326
2019-02-22
01:35
Renamed schema obj cmd method query to info and worked at bit on that. Moved all code block defines to one place while adding one. file: [e2131e7015] check-in: [79df08c5d7] user: rolf branch: schema, size: 84034
2019-02-19
23:06
Allow schema definition command "tcl" only inside of sequential content particles. Still uncertain about the interface. file: [d79da8556e] check-in: [23f4f6f626] user: rolf branch: virtualConstraints, size: 84538
01:36
Merged from schema. file: [0d77496d3e] check-in: [7718b1e0ff] user: rolf branch: virtualConstraints, size: 84538
2019-02-17
23:18
More work on text types. Added automatic schema reset after using schema command during dom building or sax event parsing. file: [c51502086f] check-in: [bd8b0eecee] user: rolf branch: schema, size: 83497
2019-02-15
16:57
Make sure that calling another tDOM schema command inside a schema definition script (after all they are just a Tcl script) work. But ensure that calling a schema definition script evaluation inside a currently evaluated schema definition script by the same schema command raises error. file: [935c6a86fd] check-in: [258c031b81] user: rolf branch: schema, size: 83614
2019-02-14
02:39
Added text constraint commands oneOf and allOf. file: [b8ea40cfd2] check-in: [046b4f9866] user: rolf branch: schema, size: 81818
2019-02-11
20:17
Fixed domvalidate in case of namespaced nodes with prefixes in the tree. Improved DTD to schema translater: there isn't a need to wrap a SEQ with default quant into a schema group. file: [ac8f8f07fd] check-in: [d518456e98] user: rolf branch: schema, size: 79984
2019-02-09
17:02
More interleave tests. file: [84f3f56baa] check-in: [ac9a46bd21] user: rolf branch: schema, size: 78461
01:59
Even more work on interleave. file: [84ae91ff35] check-in: [e01081aa22] user: rolf branch: schema, size: 77583
01:45
Merged from schema. file: [29629f28a9] check-in: [48f9a019fa] user: rolf branch: virtualConstraints, size: 75503
01:21
More work on interleave. file: [1015868875] check-in: [4f56efe773] user: rolf branch: schema, size: 74462
2019-02-08
23:48
Fix for domvalidate attribute validation: Ensure error in case the node hasn't any attribute but the schema requires one. file: [7c47c80a62] check-in: [cf3b5c917b] user: rolf branch: schema, size: 68741
16:24
Fixed attribute probing of the domvalidate method. file: [9d7d1dbf9c] check-in: [e381867bf2] user: rolf branch: schema, size: 67688
02:02
Simple interleave implementation. Wip. file: [d07aa3a349] check-in: [73774a8105] user: rolf branch: schema, size: 67172
2019-02-07
22:17
Improved the text constraint isodate. It now expects (-?)yyyy-mm-dd and checks (all) dates by gregorian rules. file: [03029595da] check-in: [d57cf5a680] user: rolf branch: schema, size: 64926
11:48
Merged from schema. file: [a5c466fc68] check-in: [cb3f5356f1] user: rolf branch: virtualConstraints, size: 65806
01:31
Tests for more than one text constraint and text matching one of several constraints. file: [9d93a57037] check-in: [a5d267e065] user: rolf branch: schema, size: 64765
2019-02-02
23:25
Implemented text constraint commands maxLength and minLength. file: [41dd6f41eb] check-in: [d75968f01b] user: rolf branch: schema, size: 63295
02:37
merged from schema file: [c6d763fd3a] check-in: [8e3407e478] user: rolf branch: virtualConstraints, size: 63055
02:32
Renamed text constraint isint to integer. Added text constrains number and boolean and a provisorial isodate. file: [d6000a7043] check-in: [5c4f01dc2a] user: rolf branch: schema, size: 62014
00:25
Fixed argument check of [<schemacmd> start]. file: [72086fe785] check-in: [247e679fa9] user: rolf branch: schema, size: 60790
2019-01-30
21:46
wip file: [29925d9277] check-in: [9c4cbac6d5] user: rolf branch: wip, size: 61198
2019-01-29
09:01
Fixed implementation of constraint cmd tcl; added minimal tests. file: [37e57944c2] check-in: [cd88943e2d] user: rolf branch: wip, size: 61013
2019-01-25
16:50
Implemented text constraint commands nmtoken and nmtokens. Useful mostly for DTD to tDOM schema translation. The commands skip leading and following space characters and see sequences of space characters as one space. In other words: they apply the rules of what the XML rec calls attribute value normalization (which the XML parser would do, if he would knew the type of the value) on the value to check (although this normalization is done no matter if the text constraint command is used for an attribute value or pcdata between tags). file: [346e328698] check-in: [a79cc50455] user: rolf branch: schema, size: 60158
02:31
Reworked check for element end into 3-way logic. file: [f03f92ded4] check-in: [c30fa32733] user: rolf branch: schema, size: 59183
2019-01-24
22:46
Handle mixed/choice cp amongst the children (choices) of a mixed/choice cp. file: [1c5c23deb4] check-in: [c69a4c0ab4] user: rolf branch: schema, size: 58604
13:28
Added a few tests more. file: [c6c311d3fd] check-in: [c98407553d] user: rolf branch: schema, size: 55708
01:06
More work to get quantified choices right. Finally reverted to 3-way logic for probing a match. file: [caf50f542b] check-in: [5188c49af6] user: rolf branch: wip, size: 53806
2019-01-21
15:57
wip file: [2d3541461a] check-in: [d85da14d6e] user: rolf branch: wip, size: 53496
00:46
wip file: [b4941efab8] check-in: [3851efb4ac] user: rolf branch: wip, size: 50267
2019-01-19
13:24
wip file: [54f6b2da4c] check-in: [c79509ea95] user: rolf branch: wip, size: 50261
2019-01-17
22:52
Reduced the internal used quants to ! ? * +. Only name and pattern (and groups, which are only anonymous pattern) cps are pushed onto the stack. file: [d4ddd84229] check-in: [98ba54b83e] user: rolf branch: schema, size: 49578
03:44
Still a lot to do but looks good, nifty, better to maintain. file: [e7db073f7b] check-in: [cb623d6ce9] user: rolf branch: wip, size: 49652
2019-01-16
01:30
Digression: Reduce complexity of the validation core by eliminating STRUCTURE_CQUANT_NM for the process of validation. Ahem, what? {n m} quants are enrolled into n STRUCTURE_CQUANT_ONE child cp plus m-n STRUCTURE_CQUANT_OPT child cp. file: [9917756d67] check-in: [da6f9ed382] user: rolf branch: wip, size: 49698
2019-01-14
23:19
Editorial fix. file: [0b0f6e73e2] check-in: [0e887ba0b9] user: rolf branch: schema, size: 49588
2019-01-13
02:39
Renamed the lately introduced text constraint command pattern to match. The match command does shell style matching and the xsd facet pattern does regular expression matching and that could be confusing. Added new text constraint command regexp, for regular expression matching. Also not named pattern because the xsd pattern regexp rules differs in major points from the for the implementation used Tcl regexp (most important difference is maybe that xsd pattern automatically anchors at string start/end (without explict ^$)). file: [892a5c1884] check-in: [786dd36028] user: rolf branch: schema, size: 49601
2019-01-12
03:28
Implementend the text constraint script command "pattern" (a glob style matcher). file: [d361624bb0] check-in: [d7ce604f85] user: rolf branch: schema, size: 49062
02:55
Validation of namespaced attributes now works additional to dom pastvalidation also with [<schemacmd> validate $xml]. The same for SAX parsers (xml::parser) should be low hanging fruit on this work. More focus on mixed content. file: [7cccb60a82] check-in: [dc78a9ca7d] user: rolf branch: schema, size: 48502
2019-01-11
14:56
Fixed horrible mistake in patternList handling. file: [3100e2c609] check-in: [7e1c8cf210] user: rolf branch: schema, size: 46958
12:14
Implementend the text constraint script command "enumeration". file: [d42ba9af3c] check-in: [8e073699eb] user: rolf branch: schema, size: 46625
11:26
Implementend the text constraint script command "fixed". file: [0c0703c1ee] check-in: [e2dbca3baa] user: rolf branch: schema, size: 45900
01:02
Enabled validate constraints on attribute values. file: [1834d25cf3] check-in: [0e11568b4c] user: rolf branch: schema, size: 45201
2019-01-10
22:24
Implementend the text constraint script command "tcl", calling a Tcl script with the text to validate appended; the result of the script is used as boolean. Which basically solves any text validation problem. file: [432f6c2c72] check-in: [1c5ebc685d] user: rolf branch: schema, size: 44632
02:08
Steps towards data typing. file: [f0c1dd6d81] check-in: [5407acfd0f] user: rolf branch: schema, size: 43888
2019-01-09
15:43
Fixed the schema definition script command "namespace". file: [434bac2d2d] check-in: [beba040b25] user: rolf branch: schema, size: 43503
14:09
Fixed the configure switch added with the previous check-in. And a few editorial changes. file: [56c4b3c1bc] check-in: [fef7ebf150] user: rolf branch: schema, size: 41591
00:47
Enable validation features by default (with easy configure disable switch). file: [db9a36b306] check-in: [589a5b2a86] user: rolf branch: schema, size: 41557
2019-01-08
23:25
Added domvalidate. file: [9e83a83292] check-in: [e2a53e2d60] user: rolf branch: schema, size: 40803
07:33
Fixed tdom::schema argument handling. file: [c190d9ee63] check-in: [31241ee4e7] user: rolf branch: schema, size: 38912
01:28
wip on domvalidate and elsewhere. file: [a47844c0fc] check-in: [d35774d0cf] user: rolf branch: schema, size: 38912
00:38
Working towards dom doc/tree validation. file: [8e8a1d466d] check-in: [65778581a3] user: rolf branch: schema, size: 38207
2019-01-07
16:15
(This and the previous 2 wip commits:) Fixed mem-leak in schemaReset(). Attribute validation: More work and fixes. <schemacmd validate> and xml::parser SAX parser now check non-namespaced attributes and detect unknown attributes and missing required attributes (namespaced and non-namespaced). Verifying namespaced attributes for this parsers tbd. [dom parse -validateCmd] now fully checks schema attribute constrains (non-namespaced and namespaced). This is at the same time a major step towards post-validation of a DOM subtree or document. file: [1c97b56847] check-in: [80f15f0bb6] user: rolf branch: schema, size: 37941
01:51
wip file: [feb68f61c9] check-in: [e1b3b45798] user: rolf branch: schema, size: 35694
2019-01-06
02:55
wip file: [6d397000fb] check-in: [6b331d4861] user: rolf branch: schema, size: 33123
2019-01-02
01:39
Name missing required attributes in the error msg. Code gardening. Ensure propagation of error msg. file: [28d9497b51] check-in: [ac087841b0] user: rolf branch: schema, size: 32184
2018-12-29
01:12
Added basic attribute validation (atm not namespaced attributes only) to the schemacmd validate method. file: [227db489e7] check-in: [5b8de8b8d6] user: rolf branch: schema, size: 31777
2018-12-27
00:44
Fixed attribute definition and memory clean up. file: [4f12ebb9f4] check-in: [fe8943dffa] user: rolf branch: schema, size: 31056
2018-12-26
01:51
At least simple attribute handling; wip. file: [f4de534aa1] check-in: [ffc7a9db6d] user: rolf branch: schema, size: 30762
2018-12-22
16:39
wip file: [4bb69a2ea5] check-in: [46e08fefe5] user: rolf branch: schema, size: 30572
2018-12-21
00:40
Fix in the validation core. Better debugging infrastructure. The optional errMsg varname argument to the validate method will now set to the empty string in case the xml is valid. Editorial corrections. file: [ad155ea5fb] check-in: [a15a26eaec] user: rolf branch: schema, size: 30055
2018-12-19
22:03
Still plumbing the validation core. file: [79dfd0887d] check-in: [74f30b7671] user: rolf branch: schema, size: 28987
00:34
Some rounding of what is there. file: [6d953dc51d] check-in: [3399294efa] user: rolf branch: schema, size: 26934
2018-12-16
18:40
Removed the "empty" schema defintion command, for simplicity. It isn't needed (an empty or only "attrbiute" commands containing definition script expresses the same) and the semantic of an "empty" command inside the definition script of other commands isn't that clear in all cases. file: [e533d9a812] check-in: [a2d614e328] user: rolf branch: schema, size: 22584
01:25
wip file: [5e5fe7aac1] check-in: [d3210a0bb2] user: rolf branch: wip, size: 22599
2018-12-14
00:39
Pondering around. file: [1826372266] check-in: [cd9d6983e0] user: rolf branch: wip, size: 22676
2018-12-12
13:41
More tweaks towards another stack handling. file: [a362dbd9e8] check-in: [bb995d2972] user: rolf branch: wip, size: 22698
2018-12-11
22:00
Better error checking to avoid seg fault. Corrected well-formedness error reporting of the validate method. file: [011a883091] check-in: [a74eacae4d] user: rolf branch: schema, size: 22334
2018-12-07
14:12
wip. Lot's of open tasks; the picture of the next rewrite of the back end gets clearer. file: [b7ee588c9f] check-in: [0fe2d35d5c] user: rolf branch: schema, size: 21987
2018-12-06
22:13
Renamed structure to schema. file: [8b45f72d4c] check-in: [084cbc63a1] user: rolf branch: schema, size: 19711 Renamed from tests/structure.test