|
Re: XMLC CVS update...: msg#00091java.enhydra.xmlc
Hi David, I'm just wondering if XMLCDeferredParsingFactory supports loading XMLC documents compiled in different Locales. The way Barracuda supports different locales is to use: DefaultDOMLoader.getGlobalInstance().getDOM(MyXMLCPageHTML.class, iLocale); Actually, DefaultDOMLoader doesn't have anything to do with XMLCStdFactory. It is a generic DOM Loader and getDOM simply returns a Document object rather than anything XMLC specific. For instance, in the Barracuda Config app, the following class files exist: ConfigHTML.class ConfigHTML_de.class ConfigHTML_en.class ConfigHTML_es.class ConfigHTML_fi.class ConfigHTML_fr.class ConfigHTML_pt.class ConfigHTML_sv.class ConfigHTMLImpl.class The original HTML file has one or more properties file associated with it: Config.html Config.properties Config_de.properties The "Config.properties" file is the fallback and defines all the keys that the other localization properties files refer to. The result is: Config.html Config_de.html Config.xmlc Config_de.xmlc The contents of Config.xmlc is: -generate both The contents of Config_de.xmlc is: -implements org.enhydra.barracuda.config.xmlc.ConfigHTML And, of course there is the options.xmlc with stuff like: -delete-class discardMe The Localize taskdef is run on this to generate: ConfigHTML.java Config_de.java ConfigHTMLImpl.java Now, I'm pretty sure that XMLCDeferredParsingFactory doesn't take this into account since this is a Barracuda-invented mechanism. However, should something like this be supported natively in XMLC? I'm just wondering if this stuff, developed by the Barracuda project shouldn't just be incorporated into XMLC because it is so XMLC specific? Both XMLCStdFactor and XMLCDeferredParsingFactory should probably support localization whether the mechanism ends up looking exactly like how Barracuda does it or whether Barracudas localization mechanism is teaked to match up better with how the XMLC developers think it should work. Thoughts? Jake At 11:37 PM 11/22/2002 +0800, you wrote: ii. Replace org.enhydra.xml.xmlc.XMLCStdFactory with org.enhydra.xml.xmlc.deferredparsing.XMLCDeferredParsingFactory in your code. XMLCDeferredParsingFactory extends XMLCStdFactory so you shouldn't have to change your codes. It should be a drop in replacement.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: XMLC CVS update..., Jacob Kjome |
|---|---|
| Next by Date: | embedded html in a table row, Michael Muller |
| Previous by Thread: | XMLC CVS update..., David Li |
| Next by Thread: | embedded html in a table row, Michael Muller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |