Java generator

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

  •   Subject
  • Author
  • Posted on
  • Rick DeBay
  • 11-07-2003
  • generator
  • Toby A Inkster
  • 11-07-2003
  • I've got to write some code that takes portions of an HTML document and arranges
    some of the content in to cells in a table, while preserving all the surrounding
    tags and making sure the output is still valid HTML.
    While I could simply write the code that searches for the specific items and
    repeatedly copy the needed inline tags within the block tags (table cells) that
    will contain these items, that's being awfully specific with little chance of

    I'd like to come up with a class that can take any block of HTML and reprocess
    it in to a table.  I'm thinking it could be used to transform lists (DL, OL, UL)
    or organize unstructured content given certain rules.

    Unfortunately I'm drawing a blank, and can't figure out a good generic, robust,
    extensible way to design this.  Does anyone have any suggestions?

    Thanks, Rick DeBay

    remove INHIBITIONS to reply

    Rick DeBay wrote:

    Quoted text here. Click to load it

    For the validity requirement, look at /. There
    is a Java version available. It should be possible to pass your end result
    though it before sending it off to the browser.

    Alternatively, mod_tidy: /

    Toby A Inkster BSc (Hons) ARCS
    Contact Me -

    Site Timeline