[relaxng-user] FW: Jing & Trang errors when processing RNC grammar

MURATA Makoto (FAMILY Given) EB2M-MRT at asahi-net.or.jp
Wed Apr 28 08:47:55 ICT 2004


This works.

Cheers,

Makoto

-------------------------------------------------------------------------------------
namespace rng = "http://relaxng.org/ns/structure/1.0"
datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes"

start = element ConfigRoot  { ConfigGroup* } 

NamedElementAttributes = 
   attribute name { text } | 
   attribute platform { text }? 

StringValue = element StringValue { xsd:string } 
IntValue = element IntValue { xsd:integer } 
FloatValue = element FloatValue { xsd:float } 
BooleanValue = element BooleanValue { xsd:boolean } 
PrimitiveValue = (StringValue | IntValue | FloatValue | BooleanValue) 

Map = element Map { (MapEntry)* } 
MapEntry = element MapEntry { PrimitiveValue } 
Array = element Array { (PrimitiveValue)* } 

ConfigValue =  ( PrimitiveValue | Map | Array ) | NamedElementAttributes 

ConfigGroupEntry = (ConfigGroup |  ConfigValue) 

ConfigGroup =  element ConfigGroup { 
   ConfigGroupEntry* 
} 
-- 
MURATA Makoto (FAMILY Given) <EB2M-MRT at asahi-net.or.jp>




More information about the relaxng-user mailing list