Re: FW: Jing & Trang errors when processing RNC grammar
"MURATA Makoto (FAMILY Given)" <[email protected]> Wed, 28 Apr 2004 08:47:55 +0900
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <[email protected]> |
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) <[email protected]>