David Flanagan wrote:
> 
> The NullPointerException I just reported was caused because the template 
> I was using was undefined 

Right.




> (I had defined it in my generic configuration  file instead of an 
> application-specific file.  I suppose a template 
> doesn't make much sense without a DTD to go along with it...)

Yes.



> It still doesn't work for me, however: trying to use the convert command 
> with an elementTemplate that sets an attribute did nothing.  It seems 
> like this ought to work

Convert does not support templates, just element names and #text. See 
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s05s06.html

You did that mistake because you are used to Insert and Replace which 
support #template(), element names and #text.



Reply via email to