Re: Schema constraints
Vadim Gritsenko <[email protected]> Thu, 07 Jun 2007 17:36:32 -0400
| Newsgroups | gmane.text.xml.xindice.user |
|---|---|
| Message-ID | <[email protected]> |
Pascal Maugeri wrote: > I have read in the user guide: > > "This means it does not have any schema that constrains what can be > placed into a document collection." > > Does it mean that the external app has the "responsability" to verify > the schema ? Xindice does not care about DTDs or XSDs at the moment -- you can put any document you want. So if you want to validate the document against DTD or schema, do that before you store it in a database. Next version of Xindice might support validation -- and it will happen sooner if you provide a patch :) (Hmm... I'm not even sure you can put document with DTD into Xindice -- I recall the were some issues with it... Anybody else remembers?) > Another question: how to search for XML documents that implement a > given XML schema ? If it can be done via XPath [1], it should work in Xindice. I'm not sure though if it's possible. Vadim [1] http://www.w3.org/TR/xpath