Interesting! But it works only if you haven't done some crazy stuff like the ones in orion-cmp-mapping.j :-)
Ara. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:xdoclet-devel- > [EMAIL PROTECTED]] On Behalf Of Aslak Helles�y > Sent: Sunday, October 07, 2001 9:37 PM > To: [EMAIL PROTECTED] > Subject: [Xdoclet-devel] TIP: validating xml templates and generated xml > > 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 _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
