|
|
RelaxNG is the Validation-Format used by BXE. It's theoretically possible to write a Schema or DTD parser as well, but we do not intend to write that at the moment The best way to start with a RelaxNG file is to take a sample xml document and then "convert" that with trang (http://www.thaiopensource.com/relaxng/trang.html ) to a RelaxNG file. After this conversion, you can edit this RelaxNG file and customize it. RelaxNG is quite straighforward to understand. More infos on RelaxNG is available at http://relaxng.org/ Be aware, that your webserver has to deliver the RelaxNG file as Content-Type "text/xml", therefore the best thing to do is to name the file something like relaxng.xml. With an .xml ending, most webserver send this with the corrextt Content-Type. If you use something like Popoon or Cocoon, you can of course change the content-type dynamically in the sitemap. Or you use header("content-type: text/xml") if you serve it with PHP. |