<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><style>p {margin:0px;padding:0px;} blockquote { border: 0px; margin-top: 0px; margin-bottom: 0px; }</style></head><body style="">
<p>Hi,<br><font color="#000000" face="Verdana" size="2"><br><blockquote type="cite">Indeed, converting the schema to a DTD solved my problem!  Too simple<br>to think of myself of course.  Somehow the documentation must have<br>confused me into believing validation with XMLSchema or DTD would work<br>(I did understand RelaxNG wouldn't work).  Converting the schema is<br>simple using trang anyway (which I need to do in any case as I'm<br>writing it in compact RelaxNG).<br></blockquote><br></font></p><p>Just to clarify: lxml *does* validate (if told so), both against a W3C XMLSchema</p><p>and a RelaxNG schema.</p><p>So from my point of view, using a schema rather than a DTD nowadays is usually </p><p>the right choice, if only because the schema is itself well-formed XML - if possible.</p><p>&nbsp;</p><p>How this relates to the XPath id() function and the concept of the ID attribute in</p><p>general I don't really know, from what I've looked up in the spec this concept</p><p>seems somehow tied to DTDs (?)<br></p><p>&nbsp;</p><p>Holger&nbsp;</p><div class="signature"><br /><br /><br />-- <br />Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten <br />Browser-Versionen downloaden: http://www.gmx.net/de/go/browser</div></body></html>