[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSD error


xsd error


I tried to validate the an XSD, using on on-line xml
validator
(http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx)
but returned following error:
Validation error: 

Cannot resolve schemaLocation attribute. An error
occurred at , (3, 4).

The 'http://www.w3.org/2000/09/xmldsig#:Signature'
element is not declared. An error occurred at , (69,
10).

The xsd is:

<?xml version="1.0" standalone="yes"?>
<xs:schema id="NewDataSet"
targetNamespace="http://www.jjj.com/jjjCoupler"
xmlns:mstns="http://www.jjj.com/jjjCoupler"
xmlns="http://www.jjj.com/jjjCoupler"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
attributeFormDefault="qualified"
elementFormDefault="qualified"
xmlns:app1="http://www.w3.org/2000/09/xmldsig#">
  <xs:import
namespace="http://www.w3.org/2000/09/xmldsig#"
schemaLocation="trywritetxt1_app1.xsd" />
  <xs:element name="jjjCoupler">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="jjjSession" minOccurs="0"
maxOccurs="unbounded">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PatInfo" minOccurs="0"
maxOccurs="unbounded">
                <xs:complexType>
                  <xs:attribute name="FName"
form="unqualified" type="xs:string" />
                  <xs:attribute name="LName"
form="unqualified" type="xs:string" />
                  <xs:attribute name="MName"
form="unqualified" type="xs:string" />
                  <xs:attribute name="id"
form="unqualified" type="xs:string" />
                </xs:complexType>
              </xs:element>
              <xs:element name="SessInfo"
minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Cmt"
type="xs:string" minOccurs="0" msdata:Ordinal="1" />
                    <xs:element name="CplInfo"
minOccurs="0" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:attribute name="CplNo"
form="unqualified" type="xs:string" />
                        <xs:attribute name="Name"
form="unqualified" type="xs:string" />
                        <xs:attribute name="Rev"
form="unqualified" type="xs:string" />
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="FndInfo"
minOccurs="0" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="FndTxt"
type="xs:string" minOccurs="0" msdata:Ordinal="0" />
                          <xs:element name="FndValue"
minOccurs="0" maxOccurs="unbounded">
                            <xs:complexType>
                              <xs:attribute
name="FValType" form="unqualified" type="xs:string" />
                              <xs:attribute
name="FValValue" form="unqualified" type="xs:string"
/>
                              <xs:attribute
name="FValUnit" form="unqualified" type="xs:string" />
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="Chksum"
form="unqualified" type="xs:string" />
                        <xs:attribute name="CplNo"
form="unqualified" type="xs:string" />
                        <xs:attribute name="EntNo"
form="unqualified" type="xs:string" />
                        <xs:attribute name="RecNo"
form="unqualified" type="xs:string" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="ProvID"
form="unqualified" type="xs:string" />
                  <xs:attribute name="SessID"
form="unqualified" type="xs:string" />
                  <xs:attribute name="SessTime"
form="unqualified" type="xs:string" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="id" form="unqualified"
type="xs:string" />
          </xs:complexType>
        </xs:element>
        <xs:element name="jjjEngine" minOccurs="0"
maxOccurs="unbounded">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="GenInfo" minOccurs="0"
maxOccurs="unbounded">
                <xs:complexType>
                  <xs:attribute name="FirstView"
form="unqualified" type="xs:string" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="id" form="unqualified"
type="xs:string" />
          </xs:complexType>
        </xs:element>
        <xs:element ref="app1:Signature" />
      </xs:sequence>
      <xs:attribute name="Ver" form="unqualified"
type="xs:string" />
    </xs:complexType>
  </xs:element>
  <xs:element name="NewDataSet"
msdata:IsDataSet="true">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element ref="jjjCoupler" />
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>



Any help would be greatly appreciated.


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.