Hi: In the Restlet book (page 108), it says regarding validation of XML documents that, "we recommend you use XML Schema...or modern alternatives such as Relax NG or Schematron." I'm interested in using Schematron.
I'm using Restlet 2.0.14. In the XMLRepresentation class, the getSchemaLanguageUri() method that returns the value passed to javax.xml.validation.SchemaFactory.newInstance() in getSchema() (which is called by setSchema(Representations) shown in the book) only seems to be able to return values for W3C Schema and RELAXNG. Even if I use the setSchema() that takes a compiled schema as an argument, I still need to pass an argument to SchemaFactory.newInstance() that will work with Schematron. javax.xml.XMLConstants has String constants for W3C Schema and RELAX NG, but not Schematron. I am wanting to validate XML representations using both Schematron in conjunction with W3C Schema by putting the Schematron rules inside <appinfo> tags in the xsd schema. How can I do this? The Restlet book does not give an example. A search of this mailing list for "schematron" produces no results. If there is an example somewhere that I am not finding, or if someone could show me how to accomplish this I would be most grateful. Thank you very much, Adam Mackler ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2972130

