I have only been working with XDoclet for a few days and have run into a 
problem that I am looking for "best solution" suggestions on.

I am using the early-access Java Architecture for XML Binding (JAXB) to 
handle all XML parsing and generation. JAXB has its own source generation 
classes that accept a DTD and a JAXB specific binding schema and generate 
"xml-aware" objects.

So far I have created a custom dataobject.j template which allows the Data 
object to extend the JAXB generated Data object. I have also created 
templates which generate the DTD and Binding Schema mentioned above. This 
all works great thanks to XDoclet's extensibility.

My problem is that I need to invoke the JAXB class that will generate the 
source for the JAXB object and I want to do that for each class that I am 
processing in my EjbDoclet task. I need to be able to dynamically set the 
names of the input files (DTD/Binding Schema) and the ouptut file (JAXB 
object).

Do I create a new TemplateSubTask? Or maybe since my Data object will always 
need to extend the JAXB object, should I modify DataObjectSubTask to include 
additional parameters?  Is it a really bad idea to invoke the JAXB source 
generation during an XDoclet task?  I know that I don't want to do my own 
JAXB object generation. <g>

Thanks in advance for any help.

Tim Kuntz

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to