Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Schema Help >Thread Next - E rcase-RecurseLax.1: Group's occurrence range, (1,unbounded), is not a valid restriction of base group's occurrence range, (1,1). RE: Schema HelpTo: "'oknam park'" <ponda7777@-------.--->, <xmlschema-dev@--.---> Date: 2/10/2006 9:17:00 AM > > 1) How could I define type="xs:anyURI" > for identifier element below? it should be for only identifier, not > sub-element such as gemq:sid, etc. > > <xs:element name="identifier"> > <xs:complexType mixed="true"> If an element has mixed content, you can't constrain the content of the text nodes (which I imagine is what your question is asking). > > 2) How could I allow to represent "<dc:description > xml:lang='en'>" in a xml > instance file in a schem below? > > <xs:element name="description"> > <xs:complexType mixed="true"> > <xs:sequence> > <xs:element ref="dcterms:abstract" minOccurs="0" > maxOccurs="unbounded"/> > <xs:element ref="dcterms:tableOfContents" minOccurs="0" > maxOccurs="unbounded"/> > </xs:sequence> > </xs:complexType> > </xs:element> Import the schema for the XML namespace, and add <xs:attribute ref="xml:lang"/> after the xs:sequence (but inside the xs:complexType). Michael Kay http://www.saxonica.com/ From ponda7777@h... Fri Feb 10 21:39:12 2006 Received: from l | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
