Hi, I'm working with James Clark's Modularization of XHTML in Relax NG, in hopes of being able to extend it for a project I'm working on. I'm working with Trang (in Oxygen 6.2 Mac), as I need the final schema format to be .xsd for use in a .NET environment.
So as a test, I validated a simple XHTML document against the Relax NG schema. It validates no problem. So far so good. I then convert the relax ng schema to a W3C XML schema (again using Trang in Oxygen), and use the resulting .xsd schema to validate the same XHTML document. This time I get a bunch of errors, for example: Location: 7:34 Description: E cos-nonambig: "http://www.w3.org/1999/xhtml":del and "http://www.w3.org/1999/xhtml":del (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. URL: http://www.w3.org/TR/xmlschema-1/#cos-nonambig Ok so Trang isn't magic... either the relax schema is more comfortable with this ambiguity, or the highly modular way Mr. Clark wrote the XHTML rng schema is giving Trang fits. So I directly validate the xhtml-strict.xsd schema, and I get about 10 errors, and they seem to be related to the Edit.class. Now I'm comfortable with DTD's, and Relax NG just seems the most elegant way to work with schemas, so I'd like to maintain this XHTML extension in Relax NG (versus .xsd or dtd). So I guess I have the following options: -"fix" the XHTML .rng Edit.class file (if that is the problem) so it plays nicely with trang and produces a valid (non-ambiguous) .xsd. This feels to me like pulling on the loose thread in a sweater- soon I'll be re-writing the entire thing (!) - fix the XSD produced by Trang, (and remember to do this anytime I modify the the relax ng files) this means I'm learning XSD now as well... : ( - go back to DTD's - find a validator that works in .NET that can validate against Relax NG schemas. I have found two: http://www.mono-project.com/XML#RELAX_NG http://sourceforge.net/projects/relaxng Anyone else had to deal with relax <=> xsd issues for xhtml extensions, or had experience with these .NET Relax NG validators? I've attached the .rng and xsd versions for edit.class. TIA, Chris ::: Chris Johnson [EMAIL PROTECTED] ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/2U_rlB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/rng-users/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
edit.rng
Description: Binary data
edit.xsd
Description: Binary data
