I discovered a little trick when finishing the weblogic templates. It's easy
to forget to close tags and have everything well-formed.
Thought I might share this technique it with you:

1) Rename your template to end with .xml
2) Replace "Xdoclet:" "with XDoclet_". (This is to avoid namespace problems)
3) Remove the <?xml...> header and any DTD references.
4) Open the template file in a IE5.5+. If IE complains, you must fix.
5) You fix.

When IE finally accepts your file, you can re-insert the header and replace
"XDoclet_" back to "XDoclet:".
This is a great way to avoid bugz in your templates. Further, it's easy to
add DTD validation so that
XDoclet verifies any XML it generates if it has a DTD. See WeblogicSubTask
or EjbDotXmlSubTask for inspiration.

<aslak/>


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

Reply via email to