You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Ari Maniatis (JIRA)" <ji...@apache.org> on 2009/05/17 17:09:45 UTC

[jira] Resolved: (CAY-1167) Create model schema XSD

     [ https://issues.apache.org/jira/browse/CAY-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ari Maniatis resolved CAY-1167.
-------------------------------

    Resolution: Fixed

> Create model schema XSD
> -----------------------
>
>                 Key: CAY-1167
>                 URL: https://issues.apache.org/jira/browse/CAY-1167
>             Project: Cayenne
>          Issue Type: New Feature
>            Reporter: Ari Maniatis
>            Assignee: Ari Maniatis
>             Fix For: 3.0M6
>
>
> Implement an XML schema document which can be used to validate the XML schema. This is useful for testing the output of Cayenne Modeler or for people wanting to implement their own XML without the modeler. It is also useful as a way of documenting the file format.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Andrus Adamchik <an...@objectstyle.org>.
I haven't seen the error, but the schema location placed in DataMap  
now points here:

http://cayenne.apache.org/schema/3.0/modelMap

And this is HTML docs, not the XSD.

Andrus

On Jun 10, 2009, at 12:28 PM, Aristedes Maniatis wrote:

> Hi Andrey
>
> What is the schema location is it trying to load from?
>
> How did you generate the datamap XML? Did you create a new project  
> in Cayenne Modeler? If you like, send me the XML offlist and I can  
> see if I can reproduce the problem.
>
>
> Ari Maniatis
>
>
> On 10/6/09 5:18 PM, Andrey Razumovsky wrote:
>> Hi Ari,
>>
>> I've created a JIRA issue. Seems that Eclipse is trying to download  
>> XSD from
>> specified location, but it is simple HTML.
>>
>> 2009/6/5 Aristedes Maniatis<ar...@maniatis.org>
>>
>>> On 5/6/09 7:19 PM, Andrey Razumovsky wrote:
>>>
>>>> I started getting problems with validating DataMap XMLs in  
>>>> Eclipse. It
>>>> says
>>>> "Referenced file [i.e. our xsd schema] contains errors". And  
>>>> there are a
>>>> lot
>>>> of errors in details. Does anyone have such problems?
>>>>
>>> I haven't seen any problems, but I'm not terribly surprised given  
>>> that
>>> there hasn't been any enforced validation until now. If you have  
>>> some
>>> details I am sure we can work through them to figure out what  
>>> needs to be
>>> tweaked. For example, the XSD is sensitive to the order of  
>>> elements: I think
>>> I got the order right, but maybe something is mixed up.
>>>
>>> Ari Maniatis
>>>
>>
>
>


Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Andrey Razumovsky <ra...@gmail.com>.
As per: http://www.w3.org/TR/xmlschema-1/#schema-loc:

Second URI is "hint as to the location of a schema document defining names
for that namespace name".
I think Eclipse really tries to download XSD from that URI.

2009/6/10 Andrey Razumovsky <ra...@gmail.com>

> Hi Ari,
>
> Here is Datamap.xml header generated by CM:
>
> <data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>   xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap
> http://cayenne.apache.org/schema/3.0/modelMap"
>   project-version="3.0">
>
> I think it fails because second url in xsi:schemaLocation (
> http://cayenne.apache.org/schema/3.0/modelMap) points to HTML, not to XSD.
>
> 2009/6/10 Aristedes Maniatis <ar...@maniatis.org>
>
> Hi Andrey
>>
>> What is the schema location is it trying to load from?
>>
>> How did you generate the datamap XML? Did you create a new project in
>> Cayenne Modeler? If you like, send me the XML offlist and I can see if I can
>> reproduce the problem.
>>
>>
>> Ari Maniatis
>>
>>
>>
>> On 10/6/09 5:18 PM, Andrey Razumovsky wrote:
>>
>>> Hi Ari,
>>>
>>> I've created a JIRA issue. Seems that Eclipse is trying to download XSD
>>> from
>>> specified location, but it is simple HTML.
>>>
>>> 2009/6/5 Aristedes Maniatis<ar...@maniatis.org>
>>>
>>>  On 5/6/09 7:19 PM, Andrey Razumovsky wrote:
>>>>
>>>>  I started getting problems with validating DataMap XMLs in Eclipse. It
>>>>> says
>>>>> "Referenced file [i.e. our xsd schema] contains errors". And there are
>>>>> a
>>>>> lot
>>>>> of errors in details. Does anyone have such problems?
>>>>>
>>>>>  I haven't seen any problems, but I'm not terribly surprised given that
>>>> there hasn't been any enforced validation until now. If you have some
>>>> details I am sure we can work through them to figure out what needs to
>>>> be
>>>> tweaked. For example, the XSD is sensitive to the order of elements: I
>>>> think
>>>> I got the order right, but maybe something is mixed up.
>>>>
>>>> Ari Maniatis
>>>>
>>>>
>>>
>>
>

Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Andrey Razumovsky <ra...@gmail.com>.
I also see problems in test datamaps of jdk1.5-unpublished. Could you check
that?

2009/6/10 Andrey Razumovsky <ra...@gmail.com>

> It helps, thaks!
>
> 2009/6/10 Aristedes Maniatis <ar...@maniatis.org>
>
>> On 10/6/09 7:57 PM, Andrey Razumovsky wrote:
>>
>>  cvc-complex-type.2.4.b: The content of element 'obj-entity' is not
>>> complete.
>>> One of '{"http://cayenne.apache.org/schema/3.0/modelMap":pre-persist}'
>>> is
>>> expected.
>>>
>>
>> I see the problem. I'm a bit surprised this fell through the unit tests,
>> but it looks like this is the issue within <xs:element name="obj-entity">
>>
>>      <xs:sequence minOccurs="0">
>>        <xs:element ref="cay:entity-listener"/>
>>        <xs:element ref="cay:pre-persist"/>
>>        <xs:element ref="cay:post-persist"/>
>>        <xs:element ref="cay:pre-update"/>
>>        <xs:element ref="cay:post-update"/>
>>        <xs:element ref="cay:pre-remove"/>
>>        <xs:element ref="cay:post-remove"/>
>>        <xs:element ref="cay:post-load"/>
>>      </xs:sequence>
>>
>> That should be just
>>
>> <xs:element minOccurs="0" maxOccurs="unbounded"
>> ref="cay:entity-listener"/>
>>
>>
>> I have to head home now, but I'll sort that out tonight and run some more
>> tests. If you try making a local copy of the xsd with that change and point
>> your schemaLocation to it, do your problems go away?
>>
>> Regards
>>
>> Ari Maniatis
>>
>>
>

Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Andrey Razumovsky <ra...@gmail.com>.
It helps, thaks!

2009/6/10 Aristedes Maniatis <ar...@maniatis.org>

> On 10/6/09 7:57 PM, Andrey Razumovsky wrote:
>
>> cvc-complex-type.2.4.b: The content of element 'obj-entity' is not
>> complete.
>> One of '{"http://cayenne.apache.org/schema/3.0/modelMap":pre-persist}' is
>> expected.
>>
>
> I see the problem. I'm a bit surprised this fell through the unit tests,
> but it looks like this is the issue within <xs:element name="obj-entity">
>
>      <xs:sequence minOccurs="0">
>        <xs:element ref="cay:entity-listener"/>
>        <xs:element ref="cay:pre-persist"/>
>        <xs:element ref="cay:post-persist"/>
>        <xs:element ref="cay:pre-update"/>
>        <xs:element ref="cay:post-update"/>
>        <xs:element ref="cay:pre-remove"/>
>        <xs:element ref="cay:post-remove"/>
>        <xs:element ref="cay:post-load"/>
>      </xs:sequence>
>
> That should be just
>
> <xs:element minOccurs="0" maxOccurs="unbounded" ref="cay:entity-listener"/>
>
>
> I have to head home now, but I'll sort that out tonight and run some more
> tests. If you try making a local copy of the xsd with that change and point
> your schemaLocation to it, do your problems go away?
>
> Regards
>
> Ari Maniatis
>
>

Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Aristedes Maniatis <ar...@maniatis.org>.
On 10/6/09 7:57 PM, Andrey Razumovsky wrote:
> cvc-complex-type.2.4.b: The content of element 'obj-entity' is not complete.
> One of '{"http://cayenne.apache.org/schema/3.0/modelMap":pre-persist}' is
> expected.

I see the problem. I'm a bit surprised this fell through the unit tests, but it looks like this is the issue within <xs:element name="obj-entity">

       <xs:sequence minOccurs="0">
         <xs:element ref="cay:entity-listener"/>
         <xs:element ref="cay:pre-persist"/>
         <xs:element ref="cay:post-persist"/>
         <xs:element ref="cay:pre-update"/>
         <xs:element ref="cay:post-update"/>
         <xs:element ref="cay:pre-remove"/>
         <xs:element ref="cay:post-remove"/>
         <xs:element ref="cay:post-load"/>
       </xs:sequence>

That should be just

<xs:element minOccurs="0" maxOccurs="unbounded" ref="cay:entity-listener"/>


I have to head home now, but I'll sort that out tonight and run some more tests. If you try making a local copy of the xsd with that change and point your schemaLocation to it, do your problems go away?

Regards

Ari Maniatis


Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Andrey Razumovsky <ra...@gmail.com>.
We just need to change second URL to "
http://cayenne.apache.org/schema/3.0/modelMap.xsd". Now I when I changed
that manually, I get the following validation problem with pre-persist
*listener* attached to ObjEntity:

<obj-entity name="Calendar" className="com.nic.aspu.data.Calendar"
dbEntityName="calendar"
superClassName="com.nic.tomato.cayenne.CayenneDataObject">
        <obj-attribute name="active" type="java.lang.Boolean"
db-attribute-path="active"/>
        <obj-attribute name="bydefault" type="java.lang.String"
db-attribute-path="bydefault"/>
        <obj-attribute name="dbuser" type="java.lang.String"
db-attribute-path="dbuser"/>
        <obj-attribute name="dbusercr" type="java.lang.String"
db-attribute-path="dbusercr"/>
        <obj-attribute name="deleted" type="java.lang.Boolean"
db-attribute-path="deleted"/>
        <obj-attribute name="maclabel" type="java.lang.String"
db-attribute-path="maclabel"/>
        <obj-attribute name="name" type="java.lang.String"
db-attribute-path="name"/>
        <obj-attribute name="time" type="java.lang.String"
db-attribute-path="calendartime"/>
        <obj-attribute name="timestamp" type="java.lang.Long"
db-attribute-path="timestamp"/>
        <obj-attribute name="timestampcr" type="java.lang.Long"
db-attribute-path="timestampcr"/>
        <entity-listener class="com.nic.aspu.data.event.SetActiveListener">
            <pre-persist method-name="prePersist"/>
        </entity-listener>
    </obj-entity>

Problem:
cvc-complex-type.2.4.b: The content of element 'obj-entity' is not complete.
One of '{"http://cayenne.apache.org/schema/3.0/modelMap":pre-persist}' is
expected.

2009/6/10 Aristedes Maniatis <ar...@maniatis.org>

> Yes, absolutely. The schemaLocation should end in .xsd
>
> That's a bummer. We need to fix that in Cayenne code itself, but in the
> meantime, maybe we can redirect
> http://cayenne.apache.org/schema/3.0/modelMap to
> http://cayenne.apache.org/schema/3.0/modelMap.xsd. Does anyone know
> whether we can add .htaccess files to the Cayenne web site?
>
> Ari Maniatis
>
>
> On 10/6/09 7:40 PM, Andrey Razumovsky wrote:
>
>> Hi Ari,
>>
>> Here is Datamap.xml header generated by CM:
>>
>> <data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>   xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap
>> http://cayenne.apache.org/schema/3.0/modelMap"
>>   project-version="3.0">
>>
>> I think it fails because second url in xsi:schemaLocation (
>> http://cayenne.apache.org/schema/3.0/modelMap) points to HTML, not to
>> XSD.
>>
>> 2009/6/10 Aristedes Maniatis<ar...@maniatis.org>
>>
>>  Hi Andrey
>>>
>>> What is the schema location is it trying to load from?
>>>
>>> How did you generate the datamap XML? Did you create a new project in
>>> Cayenne Modeler? If you like, send me the XML offlist and I can see if I
>>> can
>>> reproduce the problem.
>>>
>>>
>>> Ari Maniatis
>>>
>>>
>>>
>>> On 10/6/09 5:18 PM, Andrey Razumovsky wrote:
>>>
>>>  Hi Ari,
>>>>
>>>> I've created a JIRA issue. Seems that Eclipse is trying to download XSD
>>>> from
>>>> specified location, but it is simple HTML.
>>>>
>>>> 2009/6/5 Aristedes Maniatis<ar...@maniatis.org>
>>>>
>>>>  On 5/6/09 7:19 PM, Andrey Razumovsky wrote:
>>>>
>>>>>  I started getting problems with validating DataMap XMLs in Eclipse. It
>>>>>
>>>>>> says
>>>>>> "Referenced file [i.e. our xsd schema] contains errors". And there are
>>>>>> a
>>>>>> lot
>>>>>> of errors in details. Does anyone have such problems?
>>>>>>
>>>>>>  I haven't seen any problems, but I'm not terribly surprised given
>>>>>> that
>>>>>>
>>>>> there hasn't been any enforced validation until now. If you have some
>>>>> details I am sure we can work through them to figure out what needs to
>>>>> be
>>>>> tweaked. For example, the XSD is sensitive to the order of elements: I
>>>>> think
>>>>> I got the order right, but maybe something is mixed up.
>>>>>
>>>>> Ari Maniatis
>>>>>
>>>>>
>>>>>
>>
>

Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Aristedes Maniatis <ar...@maniatis.org>.
On 10/6/09 7:55 PM, Andrus Adamchik wrote:
> There are some serious limitations on Apache config due to performance
> considerations. Can we just delete the folder modelMap and create a
> modelMap file which is an XSD? (and then change it in subsequent
> releases to a proper name, so only M6 users will be affected).

Good idea. Done. There actually was never a folder modelMap, just a file modelMap.html which Apache httpd delivers when you don't pass an extension. I've updated the script to put the xsd file there until we get to the next release.

Ari

Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Andrus Adamchik <an...@objectstyle.org>.
There are some serious limitations on Apache config due to performance  
considerations. Can we just delete the folder modelMap and create a  
modelMap file which is an XSD? (and then change it in subsequent  
releases to a proper name, so only M6 users will be affected).

Andrus

On Jun 10, 2009, at 12:50 PM, Aristedes Maniatis wrote:

> Yes, absolutely. The schemaLocation should end in .xsd
>
> That's a bummer. We need to fix that in Cayenne code itself, but in  
> the meantime, maybe we can redirect http://cayenne.apache.org/schema/3.0/modelMap 
>  to http://cayenne.apache.org/schema/3.0/modelMap.xsd. Does anyone  
> know whether we can add .htaccess files to the Cayenne web site?
>
> Ari Maniatis
>
> On 10/6/09 7:40 PM, Andrey Razumovsky wrote:
>> Hi Ari,
>>
>> Here is Datamap.xml header generated by CM:
>>
>> <data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>   xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap
>> http://cayenne.apache.org/schema/3.0/modelMap"
>>   project-version="3.0">
>>
>> I think it fails because second url in xsi:schemaLocation (
>> http://cayenne.apache.org/schema/3.0/modelMap) points to HTML, not  
>> to XSD.
>>
>> 2009/6/10 Aristedes Maniatis<ar...@maniatis.org>
>>
>>> Hi Andrey
>>>
>>> What is the schema location is it trying to load from?
>>>
>>> How did you generate the datamap XML? Did you create a new project  
>>> in
>>> Cayenne Modeler? If you like, send me the XML offlist and I can  
>>> see if I can
>>> reproduce the problem.
>>>
>>>
>>> Ari Maniatis
>>>
>>>
>>>
>>> On 10/6/09 5:18 PM, Andrey Razumovsky wrote:
>>>
>>>> Hi Ari,
>>>>
>>>> I've created a JIRA issue. Seems that Eclipse is trying to  
>>>> download XSD
>>>> from
>>>> specified location, but it is simple HTML.
>>>>
>>>> 2009/6/5 Aristedes Maniatis<ar...@maniatis.org>
>>>>
>>>>  On 5/6/09 7:19 PM, Andrey Razumovsky wrote:
>>>>>  I started getting problems with validating DataMap XMLs in  
>>>>> Eclipse. It
>>>>>> says
>>>>>> "Referenced file [i.e. our xsd schema] contains errors". And  
>>>>>> there are a
>>>>>> lot
>>>>>> of errors in details. Does anyone have such problems?
>>>>>>
>>>>>>  I haven't seen any problems, but I'm not terribly surprised  
>>>>>> given that
>>>>> there hasn't been any enforced validation until now. If you have  
>>>>> some
>>>>> details I am sure we can work through them to figure out what  
>>>>> needs to be
>>>>> tweaked. For example, the XSD is sensitive to the order of  
>>>>> elements: I
>>>>> think
>>>>> I got the order right, but maybe something is mixed up.
>>>>>
>>>>> Ari Maniatis
>>>>>
>>>>>
>>
>
>


Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Aristedes Maniatis <ar...@maniatis.org>.
Yes, absolutely. The schemaLocation should end in .xsd

That's a bummer. We need to fix that in Cayenne code itself, but in the meantime, maybe we can redirect http://cayenne.apache.org/schema/3.0/modelMap to http://cayenne.apache.org/schema/3.0/modelMap.xsd. Does anyone know whether we can add .htaccess files to the Cayenne web site?

Ari Maniatis

On 10/6/09 7:40 PM, Andrey Razumovsky wrote:
> Hi Ari,
>
> Here is Datamap.xml header generated by CM:
>
> <data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap
> http://cayenne.apache.org/schema/3.0/modelMap"
>    project-version="3.0">
>
> I think it fails because second url in xsi:schemaLocation (
> http://cayenne.apache.org/schema/3.0/modelMap) points to HTML, not to XSD.
>
> 2009/6/10 Aristedes Maniatis<ar...@maniatis.org>
>
>> Hi Andrey
>>
>> What is the schema location is it trying to load from?
>>
>> How did you generate the datamap XML? Did you create a new project in
>> Cayenne Modeler? If you like, send me the XML offlist and I can see if I can
>> reproduce the problem.
>>
>>
>> Ari Maniatis
>>
>>
>>
>> On 10/6/09 5:18 PM, Andrey Razumovsky wrote:
>>
>>> Hi Ari,
>>>
>>> I've created a JIRA issue. Seems that Eclipse is trying to download XSD
>>> from
>>> specified location, but it is simple HTML.
>>>
>>> 2009/6/5 Aristedes Maniatis<ar...@maniatis.org>
>>>
>>>   On 5/6/09 7:19 PM, Andrey Razumovsky wrote:
>>>>   I started getting problems with validating DataMap XMLs in Eclipse. It
>>>>> says
>>>>> "Referenced file [i.e. our xsd schema] contains errors". And there are a
>>>>> lot
>>>>> of errors in details. Does anyone have such problems?
>>>>>
>>>>>   I haven't seen any problems, but I'm not terribly surprised given that
>>>> there hasn't been any enforced validation until now. If you have some
>>>> details I am sure we can work through them to figure out what needs to be
>>>> tweaked. For example, the XSD is sensitive to the order of elements: I
>>>> think
>>>> I got the order right, but maybe something is mixed up.
>>>>
>>>> Ari Maniatis
>>>>
>>>>
>


Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Andrey Razumovsky <ra...@gmail.com>.
Hi Ari,

Here is Datamap.xml header generated by CM:

<data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap
http://cayenne.apache.org/schema/3.0/modelMap"
  project-version="3.0">

I think it fails because second url in xsi:schemaLocation (
http://cayenne.apache.org/schema/3.0/modelMap) points to HTML, not to XSD.

2009/6/10 Aristedes Maniatis <ar...@maniatis.org>

> Hi Andrey
>
> What is the schema location is it trying to load from?
>
> How did you generate the datamap XML? Did you create a new project in
> Cayenne Modeler? If you like, send me the XML offlist and I can see if I can
> reproduce the problem.
>
>
> Ari Maniatis
>
>
>
> On 10/6/09 5:18 PM, Andrey Razumovsky wrote:
>
>> Hi Ari,
>>
>> I've created a JIRA issue. Seems that Eclipse is trying to download XSD
>> from
>> specified location, but it is simple HTML.
>>
>> 2009/6/5 Aristedes Maniatis<ar...@maniatis.org>
>>
>>  On 5/6/09 7:19 PM, Andrey Razumovsky wrote:
>>>
>>>  I started getting problems with validating DataMap XMLs in Eclipse. It
>>>> says
>>>> "Referenced file [i.e. our xsd schema] contains errors". And there are a
>>>> lot
>>>> of errors in details. Does anyone have such problems?
>>>>
>>>>  I haven't seen any problems, but I'm not terribly surprised given that
>>> there hasn't been any enforced validation until now. If you have some
>>> details I am sure we can work through them to figure out what needs to be
>>> tweaked. For example, the XSD is sensitive to the order of elements: I
>>> think
>>> I got the order right, but maybe something is mixed up.
>>>
>>> Ari Maniatis
>>>
>>>
>>
>

Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Aristedes Maniatis <ar...@maniatis.org>.
Hi Andrey

What is the schema location is it trying to load from?

How did you generate the datamap XML? Did you create a new project in Cayenne Modeler? If you like, send me the XML offlist and I can see if I can reproduce the problem.


Ari Maniatis


On 10/6/09 5:18 PM, Andrey Razumovsky wrote:
> Hi Ari,
>
> I've created a JIRA issue. Seems that Eclipse is trying to download XSD from
> specified location, but it is simple HTML.
>
> 2009/6/5 Aristedes Maniatis<ar...@maniatis.org>
>
>> On 5/6/09 7:19 PM, Andrey Razumovsky wrote:
>>
>>> I started getting problems with validating DataMap XMLs in Eclipse. It
>>> says
>>> "Referenced file [i.e. our xsd schema] contains errors". And there are a
>>> lot
>>> of errors in details. Does anyone have such problems?
>>>
>> I haven't seen any problems, but I'm not terribly surprised given that
>> there hasn't been any enforced validation until now. If you have some
>> details I am sure we can work through them to figure out what needs to be
>> tweaked. For example, the XSD is sensitive to the order of elements: I think
>> I got the order right, but maybe something is mixed up.
>>
>> Ari Maniatis
>>
>


Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Andrey Razumovsky <ra...@gmail.com>.
Hi Ari,

I've created a JIRA issue. Seems that Eclipse is trying to download XSD from
specified location, but it is simple HTML.

2009/6/5 Aristedes Maniatis <ar...@maniatis.org>

> On 5/6/09 7:19 PM, Andrey Razumovsky wrote:
>
>> I started getting problems with validating DataMap XMLs in Eclipse. It
>> says
>> "Referenced file [i.e. our xsd schema] contains errors". And there are a
>> lot
>> of errors in details. Does anyone have such problems?
>>
>
> I haven't seen any problems, but I'm not terribly surprised given that
> there hasn't been any enforced validation until now. If you have some
> details I am sure we can work through them to figure out what needs to be
> tweaked. For example, the XSD is sensitive to the order of elements: I think
> I got the order right, but maybe something is mixed up.
>
> Ari Maniatis
>

Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Aristedes Maniatis <ar...@maniatis.org>.
On 5/6/09 7:19 PM, Andrey Razumovsky wrote:
> I started getting problems with validating DataMap XMLs in Eclipse. It says
> "Referenced file [i.e. our xsd schema] contains errors". And there are a lot
> of errors in details. Does anyone have such problems?

I haven't seen any problems, but I'm not terribly surprised given that 
there hasn't been any enforced validation until now. If you have some 
details I am sure we can work through them to figure out what needs to 
be tweaked. For example, the XSD is sensitive to the order of elements: 
I think I got the order right, but maybe something is mixed up.

Ari Maniatis

RE: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Zissis Trabaris <z....@insysware.com>.
I have a 24 meg map file generated from the latest source trunk that
opens up in eclipse just fine.

Zissis Trabaris * Chief Technology Officer * INSYSWARE * 3235 West River
Road, Grand Island, New York, 14072, USA 
Mobile (716) 930-5654 * Office (518) 636-4118 * Fax (716) 625-1305 *
z.trabaris@insysware.com * www.insysware.com 

CONFIDENTIALITY: This email (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited. If you received this email in error,
please notify the sender and delete this email from your system. Thank
you. 


-----Original Message-----
From: Andrey Razumovsky [mailto:razumovsky.andrey@gmail.com] 
Sent: Friday, June 05, 2009 5:19 AM
To: dev@cayenne.apache.org
Subject: Re: [jira] Resolved: (CAY-1167) Create model schema XSD

I started getting problems with validating DataMap XMLs in Eclipse. It
says
"Referenced file [i.e. our xsd schema] contains errors". And there are a
lot
of errors in details. Does anyone have such problems?

2009/5/17 Ari Maniatis (JIRA) <ji...@apache.org>

>
>     [
>
https://issues.apache.org/jira/browse/CAY-1167?page=com.atlassian.jira.p
lugin.system.issuetabpanels:all-tabpanel]
>
> Ari Maniatis resolved CAY-1167.
> -------------------------------
>
>    Resolution: Fixed
>
> > Create model schema XSD
> > -----------------------
> >
> >                 Key: CAY-1167
> >                 URL: https://issues.apache.org/jira/browse/CAY-1167
> >             Project: Cayenne
> >          Issue Type: New Feature
> >            Reporter: Ari Maniatis
> >            Assignee: Ari Maniatis
> >             Fix For: 3.0M6
> >
> >
> > Implement an XML schema document which can be used to validate the
XML
> schema. This is useful for testing the output of Cayenne Modeler or
for
> people wanting to implement their own XML without the modeler. It is
also
> useful as a way of documenting the file format.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

Re: [jira] Resolved: (CAY-1167) Create model schema XSD

Posted by Andrey Razumovsky <ra...@gmail.com>.
I started getting problems with validating DataMap XMLs in Eclipse. It says
"Referenced file [i.e. our xsd schema] contains errors". And there are a lot
of errors in details. Does anyone have such problems?

2009/5/17 Ari Maniatis (JIRA) <ji...@apache.org>

>
>     [
> https://issues.apache.org/jira/browse/CAY-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Ari Maniatis resolved CAY-1167.
> -------------------------------
>
>    Resolution: Fixed
>
> > Create model schema XSD
> > -----------------------
> >
> >                 Key: CAY-1167
> >                 URL: https://issues.apache.org/jira/browse/CAY-1167
> >             Project: Cayenne
> >          Issue Type: New Feature
> >            Reporter: Ari Maniatis
> >            Assignee: Ari Maniatis
> >             Fix For: 3.0M6
> >
> >
> > Implement an XML schema document which can be used to validate the XML
> schema. This is useful for testing the output of Cayenne Modeler or for
> people wanting to implement their own XML without the modeler. It is also
> useful as a way of documenting the file format.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>