Chris Johnson wrote:
> 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.

Indeed, Trang isn't magic. It does its best to perform the conversion 
you ask of it, but when it encounters a construct that is available in 
RelaxNG but not in WXS there isn't much it can do but generate a broken 
schema. That's a direct consequence of RelaxNG's greater expressive power.

> -"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 (!)

It is indeed quite likely that you'll have to remove a lot of expressive 
power from the RelaxNG to get the WXS out. We started trying exactly 
this approach with the SVG Tiny 1.2 RNG, but it's too much work so we've 
given up and won't be provinding a WXS version.

> - 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... : (

You could hope to write a script to automatically perform the fixes you 
need, but it won't be nice. Besides, you would regularly find yourself 
writing useful constraints in your RNG and never having them used since 
they're being watered down.

> - go back to DTD's

No, just don't. DTDs must die :)

> - 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

Is there something specific that's making you hesitate to use one of those?

-- 
Robin Berjon
   Senior Research Scientist
   Expway, http://expway.com/



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/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/
 



Reply via email to