s9*****@mail.yzu.edu.tw (mike) wrote:
In my research group,someone asked me to do it "tag mapping-table"
I have to do that,whether it is pointless or not.:(
And did this person specify what a "tag mapping-table" is?
I need more precise diffs.If there exists a "tag mapping-table" of
HTML translated to XHTML1.0 it is best.
Right, assuming you want your XHTML to be Appendix C compliant
1. go to
http://www.w3.org/TR/html401/index/elements.html
2. For every element where the third column (End Tag) contains a F the
mapping is <foo> to <foo />
3. For all other elements:
3a. For all elements with required end tags or with optional end tags
included, the tag mapping is <foo>...</foo> to <foo>...</foo>.
3b. For all elements with optional end tags omitted, the mapping is
<foo>... to <foo>...</foo>
4. In HTML <foo>, <FOO>, <fOo> are all allowed. In XHTML only <foo> is
allowed.
There you go, you've now mapped all HTML tags to XHTML tags. If you
like you can now make an big table that says
<a>...</a> maps to <a>...</a>
<A>...</a> maps to <a>...</a>
<a>...</A> maps to <a>...</a>
<A>...</A> maps to <a>...</a>
But it could get tedious for the longer element names (e.g. <adDreSs>)
so a more generalised approach is better.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>