ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error
|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: can you use inheritance (extension) in relax ng?
> -----Original Message----- > From: James Clark [mailto:jjc@j...] > On Sat, 2003-10-25 at 12:17, Robert Koberg wrote: > > Hi, > > > > I was wondering how something like this would be represented in RNG: > > > > <xs:complexType name="SiteNode"> > > <xs:sequence> > > <xs:group ref="lsb:core.elems"/> > > </xs:sequence> > > <xs:attributeGroup ref="lsb:navigable.attrs"/> > > </xs:complexType> > > > > <xs:element name="folder"> > > <xs:complexType> > > <xs:complexContent> > > <xs:extension base="lsb:SiteNode"> > > <xs:sequence> > > <xs:group ref="lsb:folder.elems"/> > > </xs:sequence> > > </xs:extension> > > </xs:complexContent> > > </xs:complexType> > > </xs:element> > > > > Does RNG support extending elements like above? > > Yes, since RNG patterns handle both elements and attributes, you can do > extension just by referencing the base definition. In compact syntax: > > SiteNode = core.elems, navigable.attrs > folder = element folder { SiteNode, folder.elems } Cool -- and more compact :) I have to study RNC... After reading the threads here it seems that most prefer RNC over RNG and by far over XML Schema? Thanks, -Rob > > James
|
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
|
|||||||||

Cart








