473,378 Members | 1,360 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,378 software developers and data experts.

cvc-complex-type validation errors

I am using Firefox for details see:

http://emle.sourceforge.net/emle0201...0_context.html

http://emle.sourceforge.net/emle0201...le_lab_011.xsd and
http://emle.sourceforge.net/emle0201...le_lab_011.xml
pass these validation tests with no errors:

http://syseng.nist.gov/b2bTestbed/pr...alidation.html
http://syseng.nist.gov/b2bTestbed/pr...alidation.html

but XMLmind XML Editor Personal Edition 3.6.0 produces these errors:

[1] the sequence of child elements is incorrect [cvc-complex-type.2.4]
[2] element has no attribute "refid" [cvc-complex-type.3]

regarding XML fragment:

<equipment refid="3" />

edited XML Schema fragment:

<xsd:complexType name="EquipmentType">
<xsd:sequence minOccurs="0">
<xsd:element
minOccurs="0"
name="id"
type="xsd:positiveInteger" />
<xsd:element
minOccurs="0"
name="title"
type="xsd:string" />
<xsd:element
maxOccurs="unbounded"
minOccurs="0"
name="value"
type="ValueType" />
</xsd:sequence>
<xsd:attribute
name="refid"
type="xsd:positiveInteger"
use="optional" />
</xsd:complexType>

I do not understand what wrong that produces the errors.

This is what I am doing with emle:equipment in the XSL file:

<xsl:template match="emle:equipment">
<xsl:choose>
<xsl:when test="@refid">
<xsl:apply-templates ... />
</xsl:when>
<xsl:otherwise>
... <xsl:apply-templates select="emle:value" /...
</xsl:otherwise>
</xsl:choose>
</xsl:template>

Other files referenced in the XML and XSL files:

http://emle.sourceforge.net/emle0201...le_lab_011.xsl
http://emle.sourceforge.net/emle0201...1_emle_lab.css
http://emle.sourceforge.net/emle0201...21_emle_lab.js
http://emle.sourceforge.net/emle0201...quipment_3.xml
http://emle.sourceforge.net/emle0201...uctions_11.xml

--
C.W.Holeman II | cw***@Julian5Locals.com-5 http://JulianLocals.com/cwhii
To only a fraction of the human race does God give the privilege of
earning one's bread doing what one would have gladly pursued free, for
passion. I am very thankful. The Mythical Man-Month Epilogue/F.P.Brooks
Jun 22 '07 #1
0 2592

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: anguo | last post by:
hi, everyone. i use mysql server version: 3.23.33. when i insert one line in a table, it can insert normaly. but then it display : null discard 9/udp sink null systat ...
0
by: Thomas Scheffler | last post by:
Hi, I use the Xerces SAXParser to read my documents in Java. For that I wrote an EntityResolver so that the parse can use a schema to validate them. Now that is the problem. The parser does...
0
by: Anand | last post by:
Hi all, I have an XML which comes through a HTTP request. I want to validate that XML with a DTD in the local machine. That XML does not have a DOCTYPE element by itself. Can someone tell me how...
1
by: Senthilvel Samatharman | last post by:
I am just curious about the case 3 in the follwouing program. I understand that case 1 is the right way to overload, while Case 2 is erroneous. But i do think that the implementation of operator...
5
by: Harald Haspl | last post by:
Hello, I've appended a simple XML file and it's appropriate schema below. I want to validate the XML file against the schema with xerces-c. This example contains a section where colours are...
8
by: Dennis Gearon | last post by:
Is it possible to write functions for PL/C that have variable argument lists? I.E. UPPER( arg ) UPPER( arg, encoding_list ) LOWER( arg ) LOWER( arg, encoding_list ) SUBSTR( arg, arg, arg )
6
by: Tim Edwards | last post by:
Currently I'm running PostgreSQL 7.2.3 and having a problem sorting. I've got two colums of data, one Int4 one Varchar. When I sort ASC on the varchar I get some strange results. Here a section...
3
by: chrisvc | last post by:
I have an ASP.NET application that creates 4 threads in the Application OnStart event. Each thread is stored in the Application object collection. This code works perfectly on my dev machine,...
2
by: sk | last post by:
http://java.sun.com/developer/technicalArticles/xml/validationxpath/index.html I am following this sample and trying to learn how to validate xml document with the schema I am getting the...
2
by: Geoff | last post by:
Hello, I have three files: ~~~~~~~~~ people.xml ~~~~~~~~~ <?xml version="1.0"?> <people xmlns:xi="http://www.w3.org/2001/XInclude" > <xi:include href="AlanTuring.xml"/>
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.