OK thanks > -----Original Message----- > From: Ara Abrahamian [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 14, 2001 3:58 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: [Xdoclet-user] example of use of TemplateEnigne outside of > javadoc > > > Matthew, you're right. TemplateEngine is not really dependent on > XDocletTagSupport. Tag handlers can derive from any class, I mean it > should be that way! But there's no TemplateTagHandler class, I guess you > looked at an old class diagram :-) > I'll update docs/diagram this weekend. > > Ara. > > > -----Original Message----- > > From: J. Matthew Pryor [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, November 13, 2001 5:55 AM > > To: Ara Abrahamian; Dmitri Colebatch > > Cc: [EMAIL PROTECTED] > > Subject: RE: [Xdoclet-user] example of use of TemplateEnigne outside > of > > javadoc > > > > From my reading of the code, it seems that my TagHandler classes would > > however have to inherit from XDocletTagSupport since there are places > in > > the > > implementation of TemplateEngine where is tries to class cast the > returned > > tag class to XDocletTagSupport rather than TemplateTagHandler > > > > BYW I can't see any reason why it can't just use the > TemplateTagHandler > > super class since TemplateEngine doesn't seem to make any use of > methods > > in > > XDocletTagSupport > > > > Cheers, > > jmp > > > > > -----Original Message----- > > > From: Ara Abrahamian [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, November 07, 2001 5:43 PM > > > To: Dmitri Colebatch; J. Matthew Pryor > > > Cc: [EMAIL PROTECTED] > > > Subject: RE: [Xdoclet-user] example of use of TemplateEnigne outside > of > > > javadoc > > > > > > > > > Matthew only needs the TemplateEngine and nothing more, there's no > > > @tags and he just wants to standardize on a single template engine. > > > It's possible and in fact it was one of my main goals for the recent > > > refactoring. Just use xdoclet.template package. You can simply new > > > TemplateEngine and call it's start method, the xdoclet-mappings.xml > > > should be in your jar so that tag impl classes are loaded from there > > > (the name is misleading, it has nothing to do with xdoclet, it's > about > > > the template engine, will change it). > > > > > > Ara. > > > > > > --- Dmitri Colebatch <[EMAIL PROTECTED]> wrote: > > > > On Tue, 6 Nov 2001, J. Matthew Pryor wrote: > > > > > > > > > I can see your point in the direction of XSLT, but I for one > don't > > > > like XSLT > > > > > much, I'd prefer to program in Java and use XML for data. > > > > > > > > ok - fair enough... just thought it was worth mentioning... > > > > > > > > > Also AFAIK DTDs are not XML as such, so you can't process a DTD > > > > from an XSLT > > > > > script. There are probably some tricks you can play to make it > > > > work, but I > > > > > am not so interested in that path (and I may be wrong about the > XSL > > > > handing > > > > > of DTD documents) > > > > > > > > ok - so the thing you're missing is a model, for Javadoc sun > provides > > > > this > > > > in the form of the Javadoc tool. You would need to implement or > find > > > > something to create the tree that fed the template engine. I'm > > > > assuming > > > > you'd have something like: > > > > > > > > <XDtElement:forAllElements> > > > > <XDtElement:elementName/> > > > > <XDtElement:forAllAttributes> > > > > > > > > ... and so on? seems feasible enough... would be some code > changes > > > > required, but possible... I'll be interesteed to hear Ara's > thoughts > > > > on > > > > it... I also had overlooked your mention of DTD's, not sure if you > > > > would > > > > want to abstract dtds and schemas to one "defintion" type...? > > > > > > > > cheers > > > > dim > > > > > > > > > > > > > > Maybe these aren't great arguments, but hopefully it makes some > > > > sense of why > > > > > I am looking into this (just investigation at this stage). > > > > > > > > > > Cheers, > > > > > jmp > > > > > > > > > > > -----Original Message----- > > > > > > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] > > > > > > Sent: Tuesday, November 06, 2001 3:59 PM > > > > > > To: J. Matthew Pryor > > > > > > Cc: [EMAIL PROTECTED] > > > > > > Subject: RE: [Xdoclet-user] example of use of TemplateEnigne > > > > outside of > > > > > > javadoc > > > > > > > > > > > > > > > > > > The initial sell of XDoclet was that developers liked editing > > > > code, not > > > > > > wizards or config files etc., so let ppl do what they need to > do, > > > > where > > > > > > they like to be (in the code - hence comments). > > > > > > > > > > > > From what I gather, you're planning on taking xml, and > creating > > > > templates > > > > > > that would transform it into some other form? Sounds very > xslt, > > > > but I > > > > > > assume you've already considered that. I'm not terribly > familiar > > > > with > > > > > > Zeus, I remember hearing something about it a long time ago, > but > > > > I suppose > > > > > > what are are talking about is basically instead of the Javadoc > > > > tree, > > > > > > having an XML node tree, and operating in the same way? am I > > > > right? > > > > > > This again makes me think of XSLT, as thats exactly what that > > > > does, and > > > > > > the only difference would be that you can make xdoclet do > > > > whatever you > > > > > > please, although I'd be surprised if with enough XSL > knowledge, > > > > you > > > > > > couldn't do the same thing there... > > > > > > > > > > > > all this could be completely irrelevant if I'm misinterpreted > > > > your initial > > > > > > situation (o: What is the reason for not using XSLT? > > > > > > > > > > > > cheers > > > > > > dim > > > > > > > > > > > > On Tue, 6 Nov 2001, J. Matthew Pryor wrote: > > > > > > > > > > > > > I am looking at Zeus which is an XML binding framework > > > > > > > > > > > > > > the meta data (an XML DTD or Schema) is read in and > converted > > > > to a > > > > > > > "Binding". I was wondering how hard it would be to then use > the > > > > template > > > > > > > engine to generate the Java classes for the marshalling & > > > > > > unmarshalling part > > > > > > > of the binding. > > > > > > > > > > > > > > I should point out I am not part of the Zeus team, just an > > > > > > interested party. > > > > > > > I have also worked directly with DTD parsers and other > template > > > > > > languages > > > > > > > that allowed arbitrary XML as input and support XPath > > > > > > expressions/syntax in > > > > > > > the template language. > > > > > > > > > > > > > > I very much like the xdoclet approach, but I am finding > these > > > > > > days that a > > > > > > > good portion my meta-data is in XML. > > > > > > > > > > > > > > It seems that the tag based approach of xdoclet is really > nice > > > > > > and I'd like > > > > > > > to see if I can link the 2 projects together > > > > > > > > > > > > > > Cheers, > > > > > > > jmp > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] > > > > > > > > Sent: Tuesday, November 06, 2001 3:26 PM > > > > > > > > To: J. Matthew Pryor > > > > > > > > Cc: [EMAIL PROTECTED] > > > > > > > > Subject: Re: [Xdoclet-user] example of use of > TemplateEnigne > > > > > > outside of > > > > > > > > javadoc > > > > > > > > > > > > > > > > > > > > > > > > We've just done a large scale refactor to reduce the > > > > dependancy on the > > > > > > > > javadoc model, but as you point out, its not completely > > > > > > separated. What > > > > > > > > do you want to use as your model? > > > > > > > > > > > > > > > > I think Ara would no doubt have some good thoughts on this > as > > > > > > he was the > > > > > > > > one who did the redesign. > > > > > > > > > > > > > > > > cheers > > > > > > > > dim > > > > > > > > > > > > > > > > On Tue, 6 Nov 2001, J. Matthew Pryor wrote: > > > > > > > > > > > > > > > > > Is there an example of how to use the template engine > with > > > > meta > > > > > > > > data coming > > > > > > > > > from some other place that Javadoc comments ? > > > > > > > > > > > > > > > > > > I understand I would need to write some TagHandlers, I > am > > > > > > just wondering > > > > > > > > > where to look for examples of how to run the engine with > > > > less of the > > > > > > > > > JavaDoc/doclet stuff. > > > > > > > > > > > > > > > > > > I can see that TemplateContext is somewhat bound to > > > > javadoc, but not > > > > > > > > > greatly. > > > > > > > > > > > > > > > > > > TemplateEngine refers to XDocletTagSupport (which is > pretty > > > > > > > > tightly bound to > > > > > > > > > javadoc) but only appear to need methods in > > > > TemplateTagHandler > > > > > > > > (the super > > > > > > > > > class of XDocletTagSupport ) which is not bound to > javadoc. > > > > > > > > > > > > > > > > > > Am I way off track ? > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > Matthew > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > Xdoclet-user mailing list > > > > > > > > > [EMAIL PROTECTED] > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Xdoclet-user mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Find a job, post your resume. > > > http://careers.yahoo.com > > > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com >
_______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user