Ummm...I am not sure what version you are using but this was fixed back
in Sept 5th 2001.
--Keith
Alex Ross wrote:
>
> I'm no DTD expert but I've hit the following problem with the Castor Object
> Mapping DTD:
>
> I'm trying to set up a simple key generator, type "max" and theoretically no
> <key-generator> entry needed, as per the example below from the Castor site:
>
> <class name="myapp.ProductGroup"
> identity="id" key-generator="MAX">
> <field name="id">
> </field>
> </class>
>
> However the DTD for the <class> element lists the "key-generator" attribute
> as IDREF:
>
> <!ELEMENT class ( description?, cache-type?, map-to?, field+ )>
> <!ATTLIST class
> name ID #REQUIRED
> extends IDREF #IMPLIED
> depends IDREF #IMPLIED
> identity CDATA #IMPLIED
> access ( read-only | shared | exclusive | db-locked ) "shared"
> key-generator IDREF #IMPLIED >
>
> Meanwhile, the <key-generator> element has no declaration for an ID and I
> get an error when I validate:
>
> <!ELEMENT key-generator ( param* )>
> <!ATTLIST key-generator
> name CDATA #REQUIRED
> alias CDATA #IMPLIED>
>
> Would the fix here be to change the 'name' attribute in key-generator to ID
> and for me to add a <key-generator name="MAX"/> element?
>
> Thanks,
> Alex
>
> Alexander Ross
> Enterprise Architect
> Technology and Product Development
> 310-281-5418
>
> RightsLine, Inc.
> 9100 Wilshire Blvd.
> Suite 520 East
> Beverly Hills, CA 90212
> www.rightsline.com
>
> -----------------------------------------------------------
> 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