- From: lissette <glorianchu18@hotmail.com>
- Date: Wed, 27 Jun 2007 01:06:24 -0700 (PDT)
- To: xmlschema-dev@w3.org
Hello,
I need validate one xml with it Schema, but I have a lot of error, Could you
help me? My xml is (it is well formed):
<?xml version="1.0" encoding="UTF-8"?>
<!-- CPP para la empresa Caribes empresa vendora-->
<tp:CollaborationProtocolProfile
xmlns:tp="http://www.oasis-open.org/committees/ebxml-cppa/schema/cpp-cpa-2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:schemaLocation="C:\CPP\cpp-cpa-2_0b.xsd">
<!-- Party info para Caribes-->
<tp:PartyInfo
tp:partyName="Caribes"
tp:defaultMshChannelId="asyncChannelB1"
tp:defaultMshPackageId="Caribes_MshSignalPackage">
<tp:PartyId
tp:type="urn:oasis:names:tc:ebxml-cppa:partyid-type:duns">123456789</tp:PartyId>
<tp:PartyRef xlink:type="simple"
xlink:href="http://Caribes.com/about.html"/>
<tp:CollaborationRole>
<tp:ProcessSpecification
tp:version="2.0"
tp:name="buySell"
xlink:type="simple"
xlink:href="http://www.ebxml.org/processes/buySell.xml "
/>
<tp:Role
tp:name="Seller"
xlink:type="simple"
xlink:href="http://ebxml.org/processes/buySell.xml#seller"/>
<tp:ServiceBinding tp:channelId="dcanal1" tp:packageId="paquete1">
<tp:Service
tp:type="uriReference">uri:example.com/services/sellerService</tp:Service>
<tp:Override tp:action="orderConfirm" tp:channelId="dcanal2"
tp:packageId="paquete1"
xlink:href="http://ebxml.org/processes/buySell.xml#orderConfirm"
xlink:type="simple" />
</tp:ServiceBinding>
</tp:CollaborationRole>
<tp:DeliveryChannel tp:channelId="dcanal1" tp:transportId="transporte1"
tp:docExchangeId="documento1">
<tp:Characteristics tp:syncReplyMode="none"
tp:nonrepudiationOfOrigin="false"
tp:nonrepudiationOfReceipt="false" tp:secureTransport="true"
tp:confidentiality="false"
tp:authenticated="true" tp:authorized="false" />
</tp:DeliveryChannel>
<tp:DeliveryChannel tp:channelId="dcanal2" tp:transportId="transporte2"
tp:docExchangeId="documento1">
<tp:Characteristics tp:syncReplyMode="none"
tp:nonrepudiationOfOrigin="false"
tp:nonrepudiationOfReceipt="false" tp:secureTransport="true"
tp:confidentiality="false"
tp:authenticated="true" tp:authorized="false" />
</tp:DeliveryChannel>
<tp:Transport tp:transportId="transporte1">
<tp:SendingProtocol tp:version="1.1">HTTP</tp:SendingProtocol>
<tp:ReceivingProtocol tp:version="1.1">HTTP</tp:ReceivingProtocol>
<tp:Endpoint tp:uri="https://www.example.com/servlets/ebxmlhandler"
tp:type="allPurpose" />
</tp:Transport>
<tp:Transport tp:transportId="transporte2">
<tp:SendingProtocol tp:version="1.1">ebMail</tp:SendingProtocol>
<tp:ReceivingProtocol tp:version="1.1">ebMail</tp:ReceivingProtocol>
<tp:Endpoint tp:uri="https://www.example.com/servlets/ebxmlhandler"
tp:type="allPurpose" />
</tp:Transport>
<tp:DocExchange tp:docExchangeId="documento1">
<tp:ebXMLBinding tp:version="2.0">
<tp:ReliableMessaging tp:deliverySemantics="OnceAndOnlyOnce"
tp:idempotency="true" tp:messageOrderSemantics="Guaranteed">
<tp:Retries>5</tp:Retries>
<tp:RetryInterval>30</tp:RetryInterval>
<tp:PersistDuration>P1D</tp:PersistDuration>
</tp:ReliableMessaging>
</tp:ebXMLBinding>
</tp:DocExchange>
</tp:PartyInfo>
<tp:Packaging tp:id="paquete1">
<tp:ProcessingCapabilities tp:parse="true" tp:generate="true"/>
<tp:SimplePart tp:id="N40" tp:mimetype="text/xml">
<tp:NamespaceSupported
tp:location="http://ebxml.org/project_teams/transport/messageService.xsd"
tp:version="0.98b">http://www.ebxml.org/namespaces/messageService</tp:NamespaceSupported>
<tp:NamespaceSupported
tp:location="http://ebxml.org/project_teams/transport/xmldsig-core-schema.xsd"
tp:version="1.0">http://www.w3.org/2000/09/xmldsig</tp:NamespaceSupported>
</tp:SimplePart>
<tp:SimplePart tp:id="N41" tp:mimetype="text/xml">
<tp:NamespaceSupported
tp:location="http://ebxml.org/processes/buySell.xsd"
tp:version="1.0">http://ebxml.org/processes/buySell.xsd</tp:NamespaceSupported>
</tp:SimplePart>
</tp:Packaging>
<tp:Comment xml:lang="en-US">Seller's Collaboration Protocol
Profile</tp:Comment>
</tp:CollaborationProtocolProfile>
And my Schema is:
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://www.ebxml.org/namespaces/tradePartner"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.ebxml.org/namespaces/tradePartner"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" elementFormDefault="qualified"
attributeFormDefault="unqualified" version="1.0">
<import namespace="http://www.w3.org/1999/xlink"
schemaLocation="http://ebxml.org/project_teams/transport/xlink.xsd"/>
<import namespace="http://www.w3.org/2000/09/xmldsig#"
schemaLocation="http://ebxml.org/project_teams/transport/xmldsig-core-schema.xsd"/>
<import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://ebxml.org/project_teams/transport/xml_lang.xsd"/>
<attributeGroup name="pkg.grp">
<attribute ref="tns:id"/>
<attribute name="mimetype" type="tns:non-empty-string" use="required"/>
<attribute name="mimeparameters" type="tns:non-empty-string"/>
</attributeGroup>
<attributeGroup name="xlink.grp">
<attribute ref="xlink:type"/>
<attribute ref="xlink:href"/>
</attributeGroup>
<element name="CollaborationProtocolAgreement">
<complexType>
<sequence>
<element ref="tns:Status"/>
<element ref="tns:Start"/>
<element ref="tns:End"/>
<element ref="tns:ConversationConstraints" minOccurs="0"/>
<element ref="tns:PartyInfo" maxOccurs="unbounded"/>
<element ref="tns:Packaging"/>
<element ref="ds:Signature" minOccurs="0" maxOccurs="unbounded"/>
<element ref="tns:Comment" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="cpaid" type="tns:non-empty-string"/>
<attribute ref="tns:version"/>
<anyAttribute namespace="##targetNamespace
http://www.w3.org/2000/10/XMLSchema-instance" processContents="lax"/>
</complexType>
</element>
<element name="CollaborationProtocolProfile">
<complexType>
<sequence>
<element ref="tns:PartyInfo" maxOccurs="unbounded"/>
<element ref="tns:Packaging"/>
<element ref="ds:Signature" minOccurs="0"/>
<element ref="tns:Comment" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="tns:version"/>
<anyAttribute namespace="##targetNamespace
http://www.w3.org/2000/10/XMLSchema-instance" processContents="lax"/>
</complexType>
</element>
<element name="ProcessSpecification">
<complexType>
<sequence>
<element ref="ds:Reference" minOccurs="0"/>
</sequence>
<attribute ref="tns:version"/>
<attribute name="name" type="tns:non-empty-string" use="required"/>
<attributeGroup ref="tns:xlink.grp"/>
</complexType>
</element>
<element name="Service" type="tns:service.type"/>
<element name="Protocol" type="tns:protocol.type"/>
<element name="SendingProtocol" type="tns:protocol.type"/>
<element name="ReceivingProtocol" type="tns:protocol.type"/>
<element name="CollaborationRole">
<complexType>
<sequence>
<element ref="tns:ProcessSpecification"/>
<element ref="tns:Role"/>
<element ref="tns:CertificateRef" minOccurs="0"/>
<element ref="tns:ServiceBinding" maxOccurs="unbounded"/>
</sequence>
<attribute ref="tns:id"/>
</complexType>
</element>
<element name="PartyInfo">
<complexType>
<sequence>
<element ref="tns:PartyId" maxOccurs="unbounded"/>
<element ref="tns:PartyRef"/>
<element ref="tns:CollaborationRole" maxOccurs="unbounded"/>
<element ref="tns:Certificate" maxOccurs="unbounded"/>
<element ref="tns:DeliveryChannel" maxOccurs="unbounded"/>
<element ref="tns:Transport" maxOccurs="unbounded"/>
<element ref="tns:DocExchange" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
<element name="PartyId">
<complexType>
<simpleContent>
<extension base="tns:non-empty-string">
<attribute name="type" type="tns:non-empty-string"/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="PartyRef">
<complexType>
<attributeGroup ref="tns:xlink.grp"/>
<attribute name="type" type="tns:non-empty-string"/>
</complexType>
</element>
<element name="DeliveryChannel">
<complexType>
<sequence>
<element ref="tns:Characteristics"/>
</sequence>
<attribute name="channelId" type="ID" use="required"/>
<attribute name="transportId" type="IDREF" use="required"/>
<attribute name="docExchangeId" type="IDREF" use="required"/>
</complexType>
</element>
<element name="Transport">
<complexType>
<sequence>
<element ref="tns:SendingProtocol" maxOccurs="unbounded"/>
<element ref="tns:ReceivingProtocol"/>
<element ref="tns:Endpoint" maxOccurs="unbounded"/>
<element ref="tns:TransportSecurity" minOccurs="0"/>
</sequence>
<attribute name="transportId" type="ID" use="required"/>
</complexType>
</element>
<element name="Endpoint">
<complexType>
<attribute name="uri" type="uriReference" use="required"/>
<attribute name="type" type="tns:endpointType.type" use="default"
value="allPurpose"/>
</complexType>
</element>
<element name="Retries" type="string"/>
<element name="RetryInterval" type="string"/>
<element name="TransportSecurity">
<complexType>
<sequence>
<element ref="tns:Protocol"/>
<element ref="tns:CertificateRef" minOccurs="0"/>
</sequence>
</complexType>
</element>
<element name="Certificate">
<complexType>
<sequence>
<element ref="ds:KeyInfo"/>
</sequence>
<attribute name="certId" type="ID" use="required"/>
</complexType>
</element>
<element name="DocExchange">
<complexType>
<sequence>
<element ref="tns:ebXMLBinding"/>
</sequence>
<attribute name="docExchangeId" type="ID" use="required"/>
</complexType>
</element>
<element name="ReliableMessaging">
<complexType>
<sequence minOccurs="0">
<element ref="tns:Retries"/>
<element ref="tns:RetryInterval"/>
<element name="PersistDuration" type="timeDuration"/>
</sequence>
<attribute name="deliverySemantics" type="tns:ds.type" use="required"/>
<attribute name="idempotency" type="boolean" use="required"/>
<attribute name="messageOrderSemantics" type="tns:mos.type"
use="optional" value="NotGuaranteed"/>
</complexType>
<!-- <element name="PersistDuration" type="duration"/> -->
</element>
<element name="NonRepudiation">
<complexType>
<sequence>
<element ref="tns:Protocol"/>
<element ref="tns:HashFunction"/>
<element ref="tns:SignatureAlgorithm"/>
<element ref="tns:CertificateRef"/>
</sequence>
</complexType>
</element>
<element name="HashFunction" type="string"/>
<element name="EncryptionAlgorithm" type="string"/>
<element name="SignatureAlgorithm" type="string"/>
<element name="DigitalEnvelope">
<complexType>
<sequence>
<element ref="tns:Protocol"/>
<element ref="tns:EncryptionAlgorithm"/>
<element ref="tns:CertificateRef"/>
</sequence>
</complexType>
</element>
<element name="CertificateRef">
<complexType>
<attribute name="certId" type="IDREF" use="required"/>
</complexType>
</element>
<element name="ebXMLBinding">
<complexType>
<sequence>
<element ref="tns:ReliableMessaging" minOccurs="0"/>
<element ref="tns:NonRepudiation" minOccurs="0"/>
<element ref="tns:DigitalEnvelope" minOccurs="0"/>
<element ref="tns:NamespaceSupported" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
<attribute ref="tns:version"/>
</complexType>
</element>
<element name="NamespaceSupported">
<complexType>
<simpleContent>
<extension base="uriReference">
<attribute name="location" type="uriReference" use="required"/>
<attribute ref="tns:version"/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="Characteristics">
<complexType>
<attribute ref="tns:syncReplyMode"/>
<attribute name="nonrepudiationOfOrigin" type="boolean"/>
<attribute name="nonrepudiationOfReceipt" type="boolean"/>
<attribute name="secureTransport" type="boolean"/>
<attribute name="confidentiality" type="boolean"/>
<attribute name="authenticated" type="boolean"/>
<attribute name="authorized" type="boolean"/>
</complexType>
</element>
<element name="ServiceBinding">
<complexType>
<sequence>
<element ref="tns:Service"/>
<element ref="tns:Override" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="channelId" type="IDREF" use="required"/>
<attribute name="packageId" type="IDREF" use="required"/>
</complexType>
<unique name="action.const">
<selector xpath=".//Override"/>
<field xpath="@action"/>
</unique>
</element>
<element name="Status">
<complexType>
<attribute name="value" type="tns:statusValue.type" use="required"/>
</complexType>
</element>
<element name="Start" type="timeInstant"/>
<element name="End" type="timeInstant"/>
<!--
<element name="Start" type="dateTime"/>
<element name="End" type="dateTime"/>
-->
<element name="Type" type="string"/>
<element name="ConversationConstraints">
<complexType>
<attribute name="invocationLimit" type="int"/>
<attribute name="concurrentConversations" type="int"/>
</complexType>
</element>
<element name="Override">
<complexType>
<attribute name="action" type="tns:non-empty-string" use="required"/>
<attribute name="channelId" type="ID" use="required"/>
<attribute name="packageId" type="IDREF" use="required"/>
<attributeGroup ref="tns:xlink.grp"/>
</complexType>
</element>
<element name="Role">
<complexType>
<attribute name="name" type="tns:non-empty-string" use="required"/>
<attributeGroup ref="tns:xlink.grp"/>
</complexType>
</element>
<element name="Constituent">
<complexType>
<attribute ref="tns:idref"/>
</complexType>
</element>
<element name="Packaging">
<complexType>
<sequence>
<element name="ProcessingCapabilities">
<complexType>
<attribute name="parse" type="boolean" use="required"/>
<attribute name="generate" type="boolean" use="required"/>
</complexType>
</element>
<element name="SimplePart" maxOccurs="unbounded">
<complexType>
<sequence>
<element ref="tns:NamespaceSupported" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
<attributeGroup ref="tns:pkg.grp"/>
</complexType>
</element>
<element name="CompositeList" minOccurs="0">
<complexType>
<choice maxOccurs="unbounded">
<element name="Encapsulation">
<complexType>
<sequence>
<element ref="tns:Constituent"/>
</sequence>
<attributeGroup ref="tns:pkg.grp"/>
</complexType>
</element>
<element name="Composite">
<complexType>
<sequence>
<element ref="tns:Constituent" maxOccurs="unbounded"/>
</sequence>
<attributeGroup ref="tns:pkg.grp"/>
</complexType>
</element>
</choice>
</complexType>
</element>
</sequence>
<attribute ref="tns:id"/>
</complexType>
</element>
<element name="Comment">
<complexType>
<simpleContent>
<extension base="tns:non-empty-string">
<attribute ref="xml:lang"/>
</extension>
</simpleContent>
</complexType>
</element>
<!-- COMMON -->
<simpleType name="ds.type">
<restriction base="NMTOKEN">
<enumeration value="OnceAndOnlyOnce"/>
<enumeration value="BestEffort"/>
</restriction>
</simpleType>
<simpleType name="mos.type">
<restriction base="NMTOKEN">
<enumeration value="Guaranteed"/>
<enumeration value="NotGuaranteed"/>
</restriction>
</simpleType>
<simpleType name="statusValue.type">
<restriction base="NMTOKEN">
<enumeration value="agreed"/>
<enumeration value="signed"/>
<enumeration value="proposed"/>
</restriction>
</simpleType>
<simpleType name="endpointType.type">
<restriction base="NMTOKEN">
<enumeration value="login"/>
<enumeration value="request"/>
<enumeration value="response"/>
<enumeration value="error"/>
<enumeration value="allPurpose"/>
</restriction>
</simpleType>
<simpleType name="non-empty-string">
<restriction base="string">
<minLength value="1"/>
</restriction>
</simpleType>
<simpleType name="syncReplyMode.type">
<restriction base="NMTOKEN">
<enumeration value="responseOnly"/>
<enumeration value="signalsAndResponse"/>
<enumeration value="signalsOnly"/>
<enumeration value="none"/>
</restriction>
</simpleType>
<complexType name="service.type">
<simpleContent>
<extension base="tns:non-empty-string">
<attribute name="type" type="tns:non-empty-string"/>
</extension>
</simpleContent>
</complexType>
<complexType name="protocol.type">
<simpleContent>
<extension base="tns:non-empty-string">
<attribute ref="tns:version"/>
</extension>
</simpleContent>
</complexType>
<attribute name="idref" type="IDREF" form="unqualified"/>
<attribute name="id" type="ID" form="unqualified"/>
<attribute name="version" type="tns:non-empty-string"/>
<attribute name="syncReplyMode" type="tns:syncReplyMode.type"/>
</schema>
What is the problem? thanks very much
--
View this message in context: http://www.nabble.com/Validate-XML-with-Scheme-tf3986865.html#a11320160
Sent from the w3.org - xmlschema-dev mailing list archive at Nabble.com.
Received on Wednesday, 27 June 2007 08:06:29 UTC