Just some more random thoughts.

Perhaps this a useful scheme:

  1. The user creates an XML-like file which describes the tables to use (a template can be provided, so they just have to copy & paste and fill-in the blanks
    <TABLE> <NAME>tablename</NAME> <TITLE>This is the title of the first table>/TITLE> <COLUMN>First Column Title</COLUMN> <COLUMN>Second Column Title</COLUMN> <COLUMN>Third Column Title</COLUMN> </TABLE> <TABLE> <NAME>tablename</NAME> <TITLE>This is the title of the second table>/TITLE> <COLUMN>First Column Title</COLUMN> <COLUMN>Second Column Title</COLUMN> <COLUMN>Third Column Title</COLUMN> </TABLE>
  2. Then you have as much flat text files as there are tables (each with the name of the table as filename), which are really tab-separated value files with one record per line, containing the data of this table..
  3. You could then either compile this bunch of files once into the web-site you need or interprete them on-the-fly for each access to the site (this means the user can keep on changing the tables and data and only has to upload the files to the server by FTP or so -- of course you would need some checking the uploaded files to see that they are "valid").
As the structure is rather simple, you will perhaps not need a full-blown XML::Parser in your program.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law


In reply to Re: Re: HTML::Table - Advice please by CountZero
in thread HTML::Table - Advice please by meetn2veg

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.