Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About essdog

  • Rank
  1. I would love to use XSD, but my problem is I'm trying to write it for a 4000 line existing document. I came across a few limitations attempting to describe the document ie it's incapacity to describe unordered lists of elements that contain more than one of the same node (complex types). Any one else have experience with other schema languages?
  2. Hi everyone, I ran into some limitations describing my XML document using XSD and I came across about a half dozen of other schema languages. I read a little about Schematron, DSD, DTD, and a couple others. Does anyone have any suggestions? I'm looking for something that can help me describe some conditional logic. Thanks.
  3. I don't exactly understand your question. Can you please explain a little more? Are you saying that you only want elements to appear an even number of times?
  4. Hi everyone, I am new to creating XML schemas and I ran into a problem doing so for an existing XML document. I have one element that (this doesn't compile) looks basically like this: <xs:complexType name="type0"> <xs:someIndicator> <xs:element name="elem0" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="elem1" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="elem2" type="xs:string" minOccurs="0" maxOccurs="unbounded" /> </xs:someIndicator> </xs:complexType>As far as indicators go, I only have three options all, sequence and choice: * All will not work because my elem2 maxOccurs attribute is "unbounded". * Sequence won't work because sometimes elem1 precedes elem0. I would change this but the current document I'm working with is 4000 lines long and would take a long long time. * Choice won't work for me either because I need more than 1 element to show up. What I'm basically trying to do is find a way so that for one complexType, have 3 element types as children that can be in any order and one of them can appear an unlimited number of times. Can someone please help me out with this? I would greatly appreciate it.
  • Create New...