Take a look at the XML schematic for DocBook 5 and the section for sect1, sect2, sect3, ...
Sent from my iPad On Sep 26, 2012, at 2:39 AM, <gnanaprakash.bodire...@cognizant.com> wrote: > Hi > > I am trying to create a schema for an XML as below > > <level hierarchy=”0” type=” Level1Type”> > <level hierarchy=”1” type=”Level2Type 2”> > <level hierarchy=”2” type=” Level3Type”> > ……… > </level> > </level> > </level> > > Condition in above XML is: > level 0 can have level 1 or level 2 or level 3 or level 4 or level 5 > level 1 can have level 2 or level 3 or level 4 or level 5 > level 2 can have level 3 or level 4 or level 5 > level 3 can have level 4 or level 5 > level 4 can have level 5 > > > Schema: (Not working) > <xs:group name="Level0ContentGroup"> > <xs:choice> > <xs:element name="level" type=”Level1Type” > minOccurs="0"/> > <xs:element name="level" type=”Level2Type” > minOccurs="0"/> > <xs:element name="level" type=”Level3Type” > minOccurs="0"/> > <xs:element name="level" type=”Level4Type” > minOccurs="0"/> > <xs:element name="level" type=”Level5Type” > minOccurs="0"/> > </xs:choice> > </xs:group> > > > In the above one, I want to choose element with same name but of different > type. But it’s not working as choice should have unique element names. Is > there any work around for this? > Can someone help me in writing schema for the above XML? > > Thanks and Regards, > > Gnanaprakash Bodireddy > Sr Associate - Projects | IME > Cognizant Technology Solutions > VNET: 672103 > (O): +91 (40) 44514444 extn: 672103 > (M): +91-8897575644 > > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged > information. If you are not the intended recipient(s), please reply to the > sender and destroy all copies of the original message. Any unauthorized > review, use, disclosure, dissemination, forwarding, printing or copying of > this email, and/or any action taken in reliance on the contents of this > e-mail is strictly prohibited and may be unlawful. > _______________________________________________ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general