You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(9) |
Sep
(2) |
Oct
(2) |
Nov
|
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(5) |
Feb
(6) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Andrzej K. <ak...@np...> - 2002-08-14 17:55:42
|
Looks like we can do it with schema. The key is probably to use several different namespaces: one for the configuration file itself, and one for each module that implements configuration tags (including the kernel). The vast majority of the configuration tags supported are handled in CommonConfigurationElementInterpreter. In the configuration files themselves, you can specify different schemas for different namespaces. In the schema for the configuration files, you can use the "any" element as a placeholder for tags that can be added on the fly, and those tags can be validated according to the schema associated with their namespace. The page at http://www.sdv.fr/pages/casa/html/ant-dtd.en.html lists a couple ways to achieve similar extensibility using DTDs, but it's kind of nasty. Does the standard Java XML parser validate against schemas? If not, we can just continue error-checking in the application code and hope that schema support will be included in a future version. If you want to take a crack at this, James, that would be great. --Andrzej ----- Original Message ----- From: "Andrzej Kapolka" <ak...@np...> To: "NPSNET-V" <nps...@li...> Sent: Wednesday, August 14, 2002 9:49 AM Subject: Re: NPSNET stuff > James-- > > This has come up many times before. The reason we haven't defined a > DTD or schema for the NPSNET-V configuration format is the same reason Ant > build files don't have schemas--because you can add new types of elements on > the fly, even in the middle of parsing a single configuration file. All of > the configuration tags are validated manually--for example, if you don't > include a required attribute, it's the application rather than the parser > that issues an error message. > > That said, I haven't looked too deeply into using schemas rather than > DTDs. Configuration documentation will help, but it would be nice to > validate the tags automatically. > > --Andrzej > > ----- Original Message ----- > From: "Harney, James" <jwh...@np...> > To: "Kapolka, Andrzej" <ak...@np...> > Sent: Wednesday, August 14, 2002 8:55 AM > Subject: NPSNET stuff > > > NPSNET stuffHey, > Was wondering if you thought it necessary to define a Schema or DTD, or > both for the XML app files for NPSNET? Sun does a similar thing with JNLP > but requires no declaration of it in instance documents, checks within the > Webstart API. If so, I could give the first version a shot if you want. > Looking back over the 3million emails or so I've bugged you with, a lot deal > with the area of allowable or correct syntax in the app file and this might > aid others. Didn't know if you were already doing as part of the config > docs or not. Talk to you later, James > > > |
From: Andrzej K. <ak...@np...> - 2002-08-14 16:43:07
|
James-- This has come up many times before. The reason we haven't defined a DTD or schema for the NPSNET-V configuration format is the same reason Ant build files don't have schemas--because you can add new types of elements on the fly, even in the middle of parsing a single configuration file. All of the configuration tags are validated manually--for example, if you don't include a required attribute, it's the application rather than the parser that issues an error message. That said, I haven't looked too deeply into using schemas rather than DTDs. Configuration documentation will help, but it would be nice to validate the tags automatically. --Andrzej ----- Original Message ----- From: "Harney, James" <jwh...@np...> To: "Kapolka, Andrzej" <ak...@np...> Sent: Wednesday, August 14, 2002 8:55 AM Subject: NPSNET stuff NPSNET stuffHey, Was wondering if you thought it necessary to define a Schema or DTD, or both for the XML app files for NPSNET? Sun does a similar thing with JNLP but requires no declaration of it in instance documents, checks within the Webstart API. If so, I could give the first version a shot if you want. Looking back over the 3million emails or so I've bugged you with, a lot deal with the area of allowable or correct syntax in the app file and this might aid others. Didn't know if you were already doing as part of the config docs or not. Talk to you later, James |
From: Harney, J. <jwh...@np...> - 2002-08-13 08:39:18
|
QW55b25lIGVsc2UgdXAgdGhpcyBjaXJjdWl0PyBSZW1pbmQgbWUgYW5kIHdlJ2xsIGhhdmUgdG8g aGFzc2xlIEphbWVzIE5ldXNoYWwuLi4NCiANCi0tQW55d2F5LCBBbmRyZXpqIGFuZCBJIHdlcmUg ZGlzY3Vzc2luZyB0aGUgbmFtaW5nIGNvbnZlbnRpb25zIGZvciBtaWwgZW50aXRpZXMgdGhhdCBy ZXByZXNlbnQgcmVhbCB3b3JsZCB0eXBlcywgYW5kIGhhdmUgZmFsbGVuIG9uIHRoZSBmb2xsb3dp bm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J U3ViamVjdDogW25wc25ldHYtZGV2ZWxvcGVyc10gTWFpbGluZyBsaXN0DQoJDQoJDQoNCg0KCUFs bC0tDQoJDQoJICAgICBKYW1lcyBhbmQgSSB3ZXJlIHRhbGtpbmcgYWJvdXQgbmVlZGluZyBhIHBs YWNlIGZvciBOUFNORVQtViBkZXZlbG9wbWVudCBkaXNjdXNzaW9uLCBzbyBJIHNldCB0aGlzIGxp c3QgdXAuICBGZWVsIGZyZWUgdG8gcG9zdCBhbnkgcXVlc3Rpb25zIG9yIGlkZWFzIHlvdSBtYXkg aGF2ZSBoZXJlLg0KCQ0KCSAgICAgLS1BbmRyemVqDQoJDQoJDQoJDQoJLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KCVRoaXMgc2YubmV0IGVt YWlsIGlzIHNwb25zb3JlZCBieTpUaGlua0dlZWsNCglXZWxjb21lIHRvIGdlZWsgaGVhdmVuLg0K CWh0dHA6Ly90aGlua2dlZWsuY29tL3NmDQoJX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX18NCglucHNuZXR2LWRldmVsb3BlcnMgbWFpbGluZyBsaXN0DQoJbnBz bmV0di1kZXZlbG9wZXJzQGxpc3RzLnNvdXJjZWZvcmdlLm5ldA0KCWh0dHBzOi8vbGlzdHMuc291 cmNlZm9yZ2UubmV0L2xpc3RzL2xpc3RpbmZvL25wc25ldHYtZGV2ZWxvcGVycw0KCQ0KDQo= |
From: Kapolka, A. <ak...@np...> - 2002-08-12 12:26:20
|
All-- James and I were talking about needing a place for NPSNET-V = development discussion, so I set this list up. Feel free to post any = questions or ideas you may have here. --Andrzej |