Hi,

thanks for reporting this, it should have been fixed in the CVS.

Let me know if you have trouble with this now,

Arnaud
> -----Original Message-----
> From: Moonyoung Chung [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 21, 2001 8:31 AM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] Namespace for Attributes
>
>
> It seems that Castor can't support namespace for attribute.
>
> For example, I've got the following exception message.
>
> org.xml.sax.SAXException: CollaborationRole is missing required attribute: id
>
> from the schema,
> <?xml version = "1.0" encoding = "UTF-8"?>
> <!--Generated by XML Authority. Conforms to w3c
> http://www.w3.org/2001/XMLSchema-->
> <schema xmlns = "http://www.w3.org/2001/XMLSchema";
>        targetNamespace = "http://www.ebxml.org/namespaces/tradePartner";
>        xmlns:tns = "http://www.ebxml.org/namespaces/tradePartner";
>        xmlns:xsi = "http://www.w3.org/2000/10/XMLSchema-instance";
>        xmlns:xlink = "http://www.w3.org/1999/xlink";
>        xmlns:ds = "http://www.w3.org/2000/09/xmldsig#";
>        version = "1.0"
>        elementFormDefault = "qualified"
>        attributeFormDefault = "qualified">
>       <element name = "CollaborationProtocolProfile">
>               <complexType>
>                       <sequence>
>                               <element ref = "tns:PartyInfo"
> maxOccurs = "unbounded"/>
>                               <element ref = "tns:Packaging"/>
>                               <element ref = "tns:Comment" minOccurs
> = "0" maxOccurs = "unbounded"/>
>                       </sequence>
>                       <attribute name = "version" use = "optional"
> type = "string"/>
>               </complexType>
>       </element>
>       <element name = "CollaborationRole">
>               <complexType>
> ...
>                       <attribute name = "id" use = "required" type = "ID"/>
>               </complexType>
>       </element>
> </schema>
>
> and the xml file,
>
> <?xml version="1.0" encoding="UTF-8"?>
> <tp:CollaborationProtocolProfile
>       xmlns:tp="http://www.ebxml.org/namespaces/tradePartner";
>       xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";
>       xmlns:xlink="http://www.w3.org/1999/xlink";
>       xmlns:ds="http://www.w3.org/2000/09/xmldsig#";
>
> xsi:schemaLocation="http://www.ebxml.org/namespaces/tradePartner
http://ebxml.org/project_teams/trade_partner/cpp-cpa-v1_0.xsd";
        tp:version="1.1">
                <tp:CollaborationRole tp:id="N00">
                </tp:CollaborationRole>
<tp://CollaborationProtocolProfile>

----------------------------
I think it's because id attribute of CollaborationRole has namespace prefix
"tp:".
As long as removing "tp:", it works.
What can I do?

Thank you in advance.


Sincerely,
Diana

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to