From: Matthew B. <mat...@co...> - 2005-07-14 09:28:33
|
Alistair Young wrote: >>So you hardcode the resource >>properties in the .java file that the compiler produces? > > yes. There was a debate ages ago whether to substitute a <localise> > element with the actual text or write code into the template class to > dynamically call the Localiser. We choose the dynamic method as that lets > you update the properties file without recompiling the template. But doesn't XmlTemplate.getCharacterData() insert an hard coded string into the Java file? parent.appendChild(parent.getOwnerDocument().createTextNode(res.getString(idAttr.getNodeValue()))); -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |