Don Brutzman wrote: > > our new strategy: > develop a schema to replace DTD, then use XSLT to autogenerate > - IDL for spec > - corresponding Java interfaces & methods for all elements & attributes > - stub Java classes implementing those interfaces, suitable for a sample > implementation > - door is then open for autogenerating other language mappings, as desired
That's pretty much what we do for the DOM actually. The whole DOM spec is authored in XML and defines the API along with all the descriptions. From there, using a custom tool developed on top of Xerces and XPath from Xalan, we generate the HTML version of the spec, the IDL definitions, the Java binding, and the ECMAScript binding. We could easily add a new binding to the process in the future. -- Arnaud Le Hors - IBM Cupertino, XML Technology Group