[Mono-list] mono-xmltool and relaxng compact include

Atsushi Eno atsushi at ximian.com
Fri Dec 14 02:53:28 EST 2007


Ok, I've revisited the compact syntax land and noticed that you
don't use "grammar" which is mandatory to enclose "include" items.

http://www.oasis-open.org/committees/relax-ng/compact-20021121.html

So it's a bug in your grammar.

Atsushi Eno

Travis Staloch wrote:
> 
> Atsushi,
> 
> Oh yes, obviously need that too.  My mistake.  Here it is.
> 
> The simple.rnc I posted last message doesn't really make use of the 
> contents of Strippable.rnc.  To fully test the include, we should make 
> sure to use one of the objects defined in this file.  I've also posted a 
> modified Simple.rnc below which does this.
> 
> Cheers,
> 
> Travis
> 
> Strippable.rnc
> -------
> strippableAttributes = (
>   attribute strip {text}?,
>   attribute length {text}?,
>   attribute no_strip {text}?,
>   attribute start_pos {text}?,
>   attribute strip_after {text}?
> )
> 
> 
> Simple.rnc (modified)
> ------
> include "Strippable.rnc"
> 
> element root {
>   strippableAttributes,
>   element child1 {text}* &
>   element child2 {text}*
> }
> 
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try 
> it now. 
> <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
>  >
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list



More information about the Mono-list mailing list