S
Sugapablo
I'm assuming there's a way to do the following, but I'm having trouble
finding good information on it. If someone could point me to a good
webpage on it...
I want to take a Valid XHTML 1.0 page and add some elements to it.
Example: Let's say I want to add the elements "DATE" and "TEXT" to an
XHTML page as in the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>example</title>
</head>
<body>
<table>
<tr>
<td><DATE>2005-05-18</DATE></td>
<td><TEXT>Test Text 1</TEXT></td>
</tr>
<tr>
<td><DATE>2005-05-19</DATE></td>
<td><TEXT>Test Text 2</TEXT></td>
</tr>
</table>
</body>
</html>
How would I do this? Is there a way to do it where it could still
validate as XHTML 1.0 Strict?
I tried adding [<!ELEMENT DATE (CDATA)> <!ELEMENT TEXT (CDATA)>] to the
DOCTYPE tag, but it created two problems:
1) It would at ]> at the top of my webpage.
2) I got errors when validating saying I couldn't add those elements in
those places (i.e. within <td> tags).
finding good information on it. If someone could point me to a good
webpage on it...
I want to take a Valid XHTML 1.0 page and add some elements to it.
Example: Let's say I want to add the elements "DATE" and "TEXT" to an
XHTML page as in the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>example</title>
</head>
<body>
<table>
<tr>
<td><DATE>2005-05-18</DATE></td>
<td><TEXT>Test Text 1</TEXT></td>
</tr>
<tr>
<td><DATE>2005-05-19</DATE></td>
<td><TEXT>Test Text 2</TEXT></td>
</tr>
</table>
</body>
</html>
How would I do this? Is there a way to do it where it could still
validate as XHTML 1.0 Strict?
I tried adding [<!ELEMENT DATE (CDATA)> <!ELEMENT TEXT (CDATA)>] to the
DOCTYPE tag, but it created two problems:
1) It would at ]> at the top of my webpage.
2) I got errors when validating saying I couldn't add those elements in
those places (i.e. within <td> tags).