AnsweredAssumed Answered

Recursive XSDs?

Question asked by marcus on Mar 12, 2007
Latest reply on Apr 13, 2007 by marcus
Is it possible to use recursive XSDs at all? I'm trying with the following, and getting stack overflows due to a recursion error in alfresco.

   <xs:complexType name="menu">
         <xs:element name="menu_entry" type="lm:menu_item" minOccurs="1" maxOccurs="unbounded"/>
   <xs:complexType name="menu_item">
         <xs:element name="menu_title" type="xs:normalizedString" />
         <xs:element name="url" type="xs:anyURI" />
         <xs:element name="sub_menu_items" type="lm:menu_item" minOccurs="0" maxOccurs="1" />
   <!– defines the form for creating a press release –>
   <xs:element name="composite_menu" type="lm:menu" />

I've also tried using the "sub_menu_items" as a "sub_menu" of type lm:menu, but the same error occurs. Any ideas?