Click to See Complete Forum and Search --> : Need some advice about html and xml


Marcel2008
08-01-2001, 10:20 AM
I want to write a java bases proggie that genarates a bill of sales.

I ask the user for bill-nr, name + postal code client, and the length of the bill.

I need the length so i can make out if the table (with supply, price, number) will fit the page. If it doesn't i have to make another page with different headers.

Is it better to write this page in html, or should i use xml?

And do you have any other suggestions for this app? Any suggestion is welcome!

Thanks!

Stuka
08-01-2001, 11:37 AM
Why can't the program determine the length of the bill? Is it read from a file, or input by the user? Either way, you should be able to determine that dynamically. As a general process, I'd get the info, format it (on multiple pages if necessary), then output it. If you use XML for the bill data, then you could set up an XSLT transform to convert it to HTML for Web output, or leave it alone for storage. Using XML would make the program more flexible, but will take longer to set up.