I making some documents in xml and dtd. I use in xml html namespace to insert image. But I can valide my document with xmllint, and I don't know why :/ validator stops on first line. XML file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html:catalog SYSTEM "catalog.dtd">
<?xml-stylesheet type="text/css" href="style.css" ?>
<catalog xmlns:html="http://www.w3.org/1999/xhtml">
<catalogDescription>
<authors>Autorzy:
<author age="21">&autor1;</author>
<author age="21">&autor2;</author>
</authors>
<catalogInfo>Katalog zawiera spis gier które posiadamy w sprzedaży w naszym sklepie z grami.</catalogInfo>
</catalogDescription>
<games>
<!-- some data-->
</games>
</catalog>
DTD file:
<!ELEMENT html:catalog (catalogDescription,games)>
<!ELEMENT catalogDescription (authors?,catalogInfo?)>
<!ELEMENT authors (author+)>
<!ELEMENT author (#PCDATA)>
<!ELEMENT catalogInfo (#PCDATA)>
<!ELEMENT games (genres,game+)>
<!ELEMENT genres (genreType) #REQUIRED>
<!ATTLIST genreType id ID #REQUIRED>
<!ELEMENT game (title,more)>
<!ATTLIST game lang #IMPLIED>
<!ELEMENT more (screen, description, genre, rank, platforms,cost)>
<!ATTLIST genre ref IDREF #REQUIRED>
<!ELEMENT cost (#PCDATA) >
<!ELEMENT title (#PCDATA)>
<!ELEMENT rank EMPTY>
<!ATTLIST rank points CDATA #REQUIRED>
<!ELEMENT description (#PCDATA)>
<!ELEMENT platforms (platform+)>
<!ELEMENT platform>
<!ELEMENT screen (thumbnail,bigimage)>
<!ELEMENT thumbnaul (html:img)>
<!ELEMENT html:img #EMPTY>
<!ATTLIST html:img src CDATA>
<!ELEMENT bigimage (html:img)>
<!ELEMENT available (#PCDATA) >