On August 10, 2004 08:38 pm, Mark Hedges wrote: > Hi, xpathscript is awesome but I think XSP/ESQL is a little > clunky for what I want to do on the content side....
Yes, XSP/ESQL can get you started quickly, but in the long-haul it tends to get you bogged down. I know, I maintain two separate projects that consist of *LOTS* of XSP and ESQL, and it is not a fun place to be. > I would really like to supplant the XML content file with a > reference to my own custom perl handler module, so I can > interface directly with my object models, do some more > complicated perl, and return my own XML output to be marked up > by the xpathscript file. Generating XML dynamically from your own handlers is a great way to go. I highly recommend http://www.oreilly.com/catalog/xmlaxkit/index.html for learning more about AxKit. It has a great chapter on generating Dynamic XML, and talks about the different methods for doing it. As you'll see if you get the book, it shows how easy it is. > Is this possible? It would be a lot easier. I have tried > things like proxying through an 'xml' location, or trying > 'AddHandler' but those don't work. At the risk of sounding rude, I think a well-intended RTFM will go a long way here. The AxKit man page mentions the AxContentProvider option, which is discussed in more detail in Apache::AxKit::Provider. Though, I must say that the book mentioned above does a much better job. > There isn't really any reference I can find on ESQL, either. > How would I do a recursive query to follow a chain of database > entries and build XML nodes on the fly? The example in the AxKit::XSP::ESQL manpage should get you started. You'll want to keep an eye out for the "ancestor" attribute on the <esql:get-*/> tags. Regarding ESQL reference, I'm not sure of anything other than the ESQL manpage, and http://nachbaur.com/software/writing/Fun_with_ESQL.xhtml. I wrote that article quite a while ago, and I haven't touched it since, it still shows some practical examples of ESQL code, for what its worth. -- Michael A. Nachbaur <[EMAIL PROTECTED]> http://nachbaur.com/pgpkey.asc --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]