J
Jure Erznoznik
I've decided to reprogram my WEB app to XHTML for some of the benefits
described in W3C documentation.
While studying the documentation, I noticed a particular line which said
somethink like: If you wish to separate data from presentation, use strict,
otherwise use transitional.
While my documents work just fine using strict, I'm not really separating
data from presentation. The documents look almost exactly like they looked
in HTML 4.0 transitional I used before.
Q1: The way I understand it, to separate data from presentation, I would
have to use XSLT, wouldn't I?
I really don't want to do this since I have multiple data sets on each page.
I like them separated in the code the way they currently are. I would also
like to eventually support other browsers beside IE 6 and Firefox 1 I am
currently testing for and I really don't think XSLT is the way to do that.
Also, I'm having trouble with validator.w3.org:
Q2: Since it is a multilanguage app, I have all the docs UTF-8 encoded.
UTF-8 kinda requires 3 lead bytes to tell the reader how the file is
encoded, but validator says (error in document) that I should avoid those 3
bytes. I can of course do that, but then I would break UTF-8 rules!?!
Q3: Additionally, I have a problem with tables: I made myself a JavaScript
table object which allows me to interactively show SQL queries in HTML
tables (through some XML / PHP / SOAP). Anyway, for this object to work
correctly, I have to tell it each field's unique value, which I do through a
<TR> attribute "uniqueid". (<tr uniqueid="xxx"><td........</tr>) Of course,
the validator is not particulary happy about this attribute since it is
unknown. Is there any other way to have this information in the table in a
valid form?
Thanks in advance,
Jure
described in W3C documentation.
While studying the documentation, I noticed a particular line which said
somethink like: If you wish to separate data from presentation, use strict,
otherwise use transitional.
While my documents work just fine using strict, I'm not really separating
data from presentation. The documents look almost exactly like they looked
in HTML 4.0 transitional I used before.
Q1: The way I understand it, to separate data from presentation, I would
have to use XSLT, wouldn't I?
I really don't want to do this since I have multiple data sets on each page.
I like them separated in the code the way they currently are. I would also
like to eventually support other browsers beside IE 6 and Firefox 1 I am
currently testing for and I really don't think XSLT is the way to do that.
Also, I'm having trouble with validator.w3.org:
Q2: Since it is a multilanguage app, I have all the docs UTF-8 encoded.
UTF-8 kinda requires 3 lead bytes to tell the reader how the file is
encoded, but validator says (error in document) that I should avoid those 3
bytes. I can of course do that, but then I would break UTF-8 rules!?!
Q3: Additionally, I have a problem with tables: I made myself a JavaScript
table object which allows me to interactively show SQL queries in HTML
tables (through some XML / PHP / SOAP). Anyway, for this object to work
correctly, I have to tell it each field's unique value, which I do through a
<TR> attribute "uniqueid". (<tr uniqueid="xxx"><td........</tr>) Of course,
the validator is not particulary happy about this attribute since it is
unknown. Is there any other way to have this information in the table in a
valid form?
Thanks in advance,
Jure