[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Type-assignment
One example. <hedgeRule label="catalyst"> <choice> <ref label="foo" /> <ref label="bar" /> </choice> </hedgeRule> <elementRule label="foo" role="foo"> <hedgeRef label="foo.model" occurs="?" /> </elementRule> <elementRule label="bar" role="bar"> <hedgeRef label="bar.model" occurs="?" /> </elementRule> <tag role="foo" name="sharedName" /> <tag role="bar" name="sahredName"> <attribute name="a" /> </tag> This grammar is ambiguous. By disambiguation... Modify "catalyst" to: ------------------------------------------- <hedgeRule label="catalyst"> <choice> <ref label="foo.or.bar" /> </choice> </hedgeRule> ------------------------------------------- Add following rules: ------------------------------------------- <elementRule label="foo.or.bar" role="foo"> <hedgeRef label="foo.model" occurs="?" /> </elementRule> <elementRule label="foo.or.bar" role="bar"> <hedgeRef label="bar.model" occurs="?" /> </elementRule> ------------------------------------------- Is this correct? regards, ---------------------- K.Kawaguchi E-Mail: k-kawa@b...
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|