have a shell script done in pl/sql and want output in html

I have this shell script where I have both pl/sql and sql.
But want to have a snigle output file where the result of each cursors are in HTML tables.

I was able to do that on my old script but it was only sql scripts (no pl/sql).

Can I do have such outputs now with my new script where I used pl/sql ?

Thanks, Arnal

can you post your script??

here is script, thank you very much