Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Handling of configuration
thomas:
--- Quote from: Takeshi Miya on February 02, 2006, 06:34:07 pm ---Ok, I found a really better way.
--- End quote ---
I am having a déjà vu of November 17, 2005... :)
takeshimiya:
--- Quote from: thomas on February 02, 2006, 07:02:36 pm ---I am having a déjà vu of November 17, 2005... :)
--- End quote ---
Could it be because it's still flawed...? :wink:
takeshimiya:
--- Quote from: Michael on February 02, 2006, 06:48:43 pm ---And to have your three configurations in one XML file, instead of three different files?
--- End quote ---
If the separation is logical, it should be physical (also it's more understandeable). The Local settings can't be on the same file (ie. probably only an user with admin privileges can change it).
Michael:
--- Quote from: Takeshi Miya on February 02, 2006, 07:22:04 pm ---The Local settings can't be on the same file (ie. probably only an user with admin privileges can change it).
--- End quote ---
Yes, in such a case you cannot use just one file. Anyway, the idea was to have an XML where root was e.g., Settings and its three (or more or less) children were Global, User and Local (may be this not). By using XML and XSLT processors you can then modify each child independently (or not, it depend on what you want to do :)). You can for example look at one MPEG-21 DIA works. From a bitstream a (generic) description (XML-based) is generated. This XML description is successively modified to fit particular constraints (could be modified several times, anyway). At the end the adapted bitstream is re-created from the transformed bistream. All this is possible by using XML/XSLT.
Michael
takeshimiya:
I've never used XSLT transformations, and yes, it's possible, but it can complicate things where it's not necessary.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version