Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: MOD_PLSQL and XHTML

Re: MOD_PLSQL and XHTML

From: Mark C. Stock <mcstockX_at_Xenquery>
Date: Thu, 29 Sep 2005 10:58:01 -0400
Message-ID: <K8WdnXdc-L9nnaHeRVn-qg@comcast.com>

"Jeremy" <jeremy0505_at_gmail.com> wrote in message news:MPG.1da5fa968171b24a989f91_at_news.individual.net...
> In article <l_udnd0UwOSSfqbenZ2dnUVZ_sidnZ2d_at_comcast.com>, Mark C. Stock
> says...
>> jerermy
>>
>> just noticed this thread...
>>
>> what package are you using to generate the XHTML?
>>
>
> Hi Mark,
>
> using HTP & HTF - pl/sql web toolkit.
>
> --
>
> jeremy

I've never noticed the uppercase tags before, but that's probably because I recommend against using any of the HTP and HTF calls except HTP.P, which is basically like the web version of DBMS_OUTPUT.PUT -- it just passes data to the HTTP stream.

The HTP/HTF calls that wrap HTML are fairly useless, since you've got to know HTML in order to use them. And I guess their relative uselessness gets underscored by the fact they are not XHTML standard compliant (although the docs only claim that they generate HTML, not XHTML, so that leaves them off the hook);

It makes more sense to develop custom libraries (packages) to handle standard web interface elements. Here's an example from my treefrogger(tm) project I've currently got under development (using my worm(tm) utility) to illustrate a fairly high level of encapsulation. I've got more examples in a paper at www.enquery.com/papers/WTKprimer.zip.

++ mcs

procedure treefrogger(

        tbl in varchar2 default 'user_catalog'
       ,cols in varchar2 default null
       )
       authid current_user

is
begin
     ui.html(upper(tbl)||' '||ui.title_tm('treefrogger'));
     ui.css;

     tabset.tabs_init;

     ui.body;

     tabset.tabset;

     tabset.tab('Search','worm.search?tbl='||tbl||'&lst=.TAB2_PAGE&edt=.TAB3_PAGE');

     tabset.tab('List','!worm.list',true);
     tabset.tab('Edit','worm.edit?tbl='||tbl,false);
     tabset.tab('History','worm.history',false);

     tabset.tabset_end(
        ui.nobr(
           ui.title_tm('treefrogger')
           ||' as '
           || user
           || ' (' ||ui.link('logoff','logmeoff') ||')'
           )
        );
     ui.page_end;

end; Received on Thu Sep 29 2005 - 09:58:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US