[Newbie, a bit overwhelmed]

Building a NewsML application using dbXML (http://dbxml.org). Struts 
framework: jakarta-struts-1.0, jakarta-tomcat-4.0-b7, JSE (build 
1.3.1-b24), jakarta-taglibs-jsptl-20010830, xtags-20010620.tar.gz ...

Simple application: add, modify, delete XML documents in the dbXML 
database, then arrange them (e.g. combine several documents) for XSLT -> 
HTML, WML...

A database query returns a "ResourceIterator", for a "ResourceSet".
Each XMLResource:

    "Provides access to XML resources stored in the database.
    An XMLResource can be accessed either as text XML or via
    the DOM or SAX APIs.

    The default behavior for getContent and setContent is to
    work with XML data as text so these methods work on String
    content."

So, ;-) is there an elegant way to deal with these objects using JSP?

- Should I work on a jsptl lib for dbxml? (jx:forEach doesn't
   know how to iterate Resources.) Or just use inline
   scriptlets for e.g. iteration until jsptl settles down a bit?
- Once I extract an "XMLResource" do I pass it to xtags for
   select etc.?  Do I pass a String to xtags:parse for each
   XMLResource?  Is this where "Tag Collaboration" applies?
   Is xtags even the applicable tool?
- Eventually, I'd like to do form-based database maintenance.
   :-) The Documents are in beans, but how would a setWhatever
   work?  The present technique would be to build new or
   replacement Documents complete using xtags and insert them
   into the db?  Or is there a jdom.tld in the works? ;-)
   (There IS an XUpdate for xmldb. :-)

Please don't take this as a request to do the work for me. (Honest! ;)) 
But if someone could give me a few sentences of high-level view of the 
way this -should- be done, maybe I could avoid the paths to the swamps. ;-)

Ray Allis




Reply via email to