[lxml-dev] Using the Xpath id function

jholg at gmx.de jholg at gmx.de
Thu Jul 3 07:56:34 CEST 2008


Hi,


> Indeed, converting the schema to a DTD solved my problem!  Too simple
> to think of myself of course.  Somehow the documentation must have
> confused me into believing validation with XMLSchema or DTD would work
> (I did understand RelaxNG wouldn't work).  Converting the schema is
> simple using trang anyway (which I need to do in any case as I'm
> writing it in compact RelaxNG).
> 


Just to clarify: lxml *does* validate (if told so), both against a W3C 
XMLSchema

and a RelaxNG schema.

So from my point of view, using a schema rather than a DTD nowadays is 
usually 

the right choice, if only because the schema is itself well-formed XML - if 
possible.

 How this relates to the XPath id() function and the concept of the ID 
attribute in

general I don't really know, from what I've looked up in the spec this 
concept

seems somehow tied to DTDs (?)

 Holger 
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20080703/664f31a5/attachment.htm 


More information about the lxml-dev mailing list