OK I have successfully written and used the xdoclet template engine with a
non-javadoc source of meta-data (the Zeus binding framework specifically)

Very cool, thanks for the refactoring Ara.

Since my TagHandlers don't have anything to do with javadoc and hence don't
inherit from XDocletTagSupport, I had to make a few small changes to
TemplateEngine & TagDefTagsHandler. I am confident that these are OK to go
back into CVS since they are equally applicable to javadoc based custom tag
handlers

Here are the diffs

Index: xdoclet/core/src/xdoclet/tags/TagDefTagsHandler.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/tags/TagDefTagsHandler.java,v
retrieving revision 1.3
diff -r1.3 TagDefTagsHandler.java
8a9
> import xdoclet.template.TemplateTagHandler;
65c66,70
<                       getEngine().setTagHandlerFor( namespace, (
XDocletTagSupport ) handler_instance );
---
>                       getEngine().setTagHandlerFor( namespace, (
>                       /*
>                        * jmp mod
>                        */
>                               TemplateTagHandler ) handler_instance );
=
Index: xdoclet/core/src/xdoclet/template/TemplateEngine.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/template/TemplateEngine.java,v
retrieving revision 1.8
diff -r1.8 TemplateEngine.java
51a52,54
>       // jmp mod - need to remember this so we can set it for loaded tag
handlers
>       private transient TemplateContext context = null;
>
84a88,90
>                       // jmp mod need to keep this so we can set it for
loaded tag handlers
>                       this.context = context;
>
255a262,265
>
>               // jmp addititions - need to set these don't we ?
>               tag_handler.setEngine( this );
>               tag_handler.setContext( context );

Cheers,
jmp


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

Reply via email to