473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How can I empty this schema content model?

I have the following base schema definition:
Expand|Select|Wrap|Line Numbers
  1. <xs:group name="learningSummaryRef.content">
  2.  <xs:sequence>
  3.   <xs:sequence>
  4.    <xs:group ref="topicmeta" minOccurs="0" maxOccurs="1"/>
  5.   </xs:sequence>
  6.  </xs:sequence>
  7. </xs:group>
  8.  
I try to redefine as:
Expand|Select|Wrap|Line Numbers
  1. <xs:group name="learningSummaryRef.content">
  2.  <xs:sequence>
  3.   <xs:sequence>
  4.    <xs:group ref="topicmeta" minOccurs="0" maxOccurs="0"/>
  5.   </xs:sequence>
  6.  </xs:sequence>
  7. </xs:group>
  8.  
Xerces gives the following error:
Expand|Select|Wrap|Line Numbers
  1. rcase-Recurse.2: There is not a complete functional mapping between the particles.
  2.  
Expand|Select|Wrap|Line Numbers
  1. src-redefine.6.2.2: Group 'learningSummaryRef.content' does not properly restrict the group it redefines; constraint violated:  'rcase-Recurse.2'.
  2.  
Can someone please tell me how to properly redefine this model as empty since the topicmeta element is emptiable.

Thanks.
May 6 '11 #1
0 1163

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mani | last post by:
I have been trying to use XmlValidatingReader and parse few XML documents. The problem lies with the DTD which has #PCDATA. At this point in DTD, the DTD Parser shows "invalid content model"...
2
by: Ken Philips | last post by:
As far as I know the Schema Object Model (SOM) is only working for the MSXML Parser together with CSharp or VisualBasic but not Java. Is there a similar Tool/Spec/Api for the Java World? Ken
0
by: Philippe Poulard | last post by:
hi, i try to design a schema language, and i encoutered the famous well-known problem : valid documents are : <page></page> <page><odd/></page> <page><odd/><even/></page>...
5
by: Richard Light | last post by:
A literal-minded reading of the XML 1.0 Spec suggests that elements with content model ANY should not have comments or PIs as their immediate children. Is there a particular reason for this? ...
10
by: Michael Strorm | last post by:
Hi! I've been having problems with a DTD. Having had the Sun XML validator reject a document, I put it through 'xmllint' for more information. 'Xmllint' noted a problem with the DTD itself;...
0
by: Sven Mayer | last post by:
I am searching for a sample source code which shows how to traverse a XML/XSD schema with SOM (Schema object model) and MSXML Sven
3
by: jacksuyu | last post by:
In XMLSpy, I got error message in my xsd: This schema doesn't appear to be valid by itself:<xs:element ref='MyConfig'> makes the content model non-deterministic. If I remove the minOccurs and...
3
by: Binew. | last post by:
Hallo Zusammen, ich habe noch ein Problem und zwar bilde ich meine XML Logik in XSD Schemas ab. Ein Regel ist beispielsweise dass folgende Suchkriterien angegeben werden können:...
5
by: Damiano ALBANI | last post by:
Hello, I'd like to write a single XML Schema for both these documents : <Items> <Item xml:id="id1"> <Name>ABC</Name> ... </Item> <Item xml:id="id2">
0
by: Theadmin77 | last post by:
I keep getting the following error when trying to read my xml: Invalid character in content model. Error processing resource Complaining about the following line in my dtd file: <!ELEMENT...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.