1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-19 10:03:34 +03:00
libxml2/result/xhtml1
Daniel Veillard d5c2f92df4 modified the existing APIs to handle XHTML1 serialization rules
* tree.c include/libxml/tree.h: modified the existing APIs
  to handle XHTML1 serialization rules automatically, also add
  xmlIsXHTML() to libxml2 API. Some tweaking to make sure
  libxslt serialization uses it when needed without changing
  the library API.
* test/xhtml1 result/noent/xhtml1 result/valid/xhtml1.xhtml
  result/xhtml1: added a new test specifically for xhtml1 output
  and updated the result of one XHTML1 test
Daniel
2002-11-21 14:10:52 +00:00

31 lines
953 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- 3.1.1 3/ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Virtual Library</title>
</head>
<!-- 4.8 -->
<script type="text/javascript"><![CDATA[
... unescaped script content ...
]]></script>
<body>
<p>Moved to <a href="http://example.org/">example.org</a>.</p>
</body>
<!-- C2 -->
<img src="foo.gif" alt="foo" />
<!-- C3 -->
<p></p>
<!-- C7 -->
<p lang="fr" xml:lang="fr">coucou</p>
<p xml:lang="fr" lang="fr">salut</p>
<!-- C8 -->
<p name="fragid" id="fragid">test</p>
<!-- 4.5 -->
<dl compact="compact">
<dt>Internet Engineering Task Force</dt>
<dd>An organization which establishes technical standards for the Internet</dd>
</dl>
</html>