Zoo tutorials: [ SQL | Linux | XML ]

A Gentle Introduction to xml

Using modular xhtml III

Using modular xhtml

Implement the following features.


ValidInvalid
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "xhtmlplus.dtd">
<html><head><title/></head>
<body>
  <p>A normal XHTML element.</p>
</body></html>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "xhtmlplus.dtd">
<html><head><title/></head>
<body>
  <p>An invalid XHTML element.</p>
  <table><tr><td/></tr></table>
</body></html>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "xhtmlplus.dtd">
<html><head><title/></head>
<body>
  <p>A normal XHTML 
    <caption>element</caption>.</p>
</body></html>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "xhtmlplus.dtd">
<html><head><title/></head>
<body>
  <p>A normal XHTML element.</p>
  <caption/>
</body></html>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "xhtmlplus.dtd">
<html><head><title/></head>
<body>
  <p>A normal XHTML
    <caption title='E'>element</caption>.</p>
</body></html>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "xhtmlplus.dtd">
<html><head><title/></head>
<body>
  <p>A normal XHTML
    <caption href='E'>element</caption>.</p>
</body></html>