Hi Karen, It's probably a bit late for this but to throw it out for thinking: One way to implement a generic and standardized default setting system would be to produce an XSLT[1] file which is our template and then we simply run it against the user provided XML file. With this approach, can use any logic or xpath[2] operations supported by XSLT[3]. Though XSLT is likely not well known by our administrator users, if we wish to use XML for our configuration files it seems we should embrace the standards defined for operating on XML and thus easing the learning curve for users (they don't have to learn anything on top of just XML) and for us it means we don't have to define a logic language, default specification system, etc. Thank you, Clay
[1]: eXtensible Stylesheet Language Transformation Brief Example: http://www.w3schools.com/XML/xml_xsl.asp [2]: Examples of syntax traversal using XPath http://www.w3schools.com/XPath/xpath_syntax.asp [3]: XSLT Logic and functions available http://en.wikipedia.org/wiki/XSLT_elements On Thu, 18 Jun 2009, Karen Tung wrote: > A few days ago, I posted an email about implementing a module to provide > dynamic default setting and semantic validation features for the parser. > > http://www.opensolaris.org/jive/thread.jspa?threadID=105651&tstart=15 > > We also discussed this at the Tuesday technical meeting. > > At this point, I am recommending that we do not make a special module > to provide these features. Consumers that need to do > dynmaic default setting and semantic validation can do so as part > of their application. > > I wrote up the problem statement, the requirements, proposed solutions and my > conclusion > in the following document: > > http://www.opensolaris.org/os/project/caiman/XML_Parsing/dynamic-default-semantic-val-req-v1.odt > > Please send me other suggestions on solving the > problem or any comment you might have on this. > > Thanks, > > --Karen > > > _______________________________________________ > caiman-discuss mailing list > caiman-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/caiman-discuss >