Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#297 closed task (released)

Move Categories over to key/keyref from ID/IDREF

Reported by: ibboard Owned by: ibboard
Priority: minor Milestone: WarFoundry 0.1
Component: WarFoundry-API Version: Trunk
Keywords: key keyref Cc:
Blocked By: Blocking:

Description

Another instance of ID has been found in the Categories sub-schema. We can't use keyref, since the ref won't always be in the same file as the category, but we can (and should) use a <key> to identify the categories.

Change History (8)

comment:1 Changed 9 years ago by ibboard

Owner: set to ibboard
Status: newaccepted

comment:2 Changed 9 years ago by ibboard

(In r618) Re #297: Move Categories over to key/keyref from ID/IDREF

  • Make category use a string for an ID
  • Add key to system - key needs to be outside <complexType> so we can't put it in warfoundry-cats.xsd at the moment

TODO: Add matching code to Race, or find a way to "alias" and create a categories element that uses the type and the key within warfoundry-cats.xsd

comment:3 Changed 9 years ago by ibboard

(In r619) Re #297: Move Categories over to key/keyref from ID/IDREF

  • Initial tests for system category handling

comment:4 Changed 9 years ago by ibboard

Tried adding "categories" element in Categories schema and referencing using <xs:element ref="cat:categories"/>, but this causes Mono to throw errors because it found system:categories, not cat:categories. Substitution groups and deprecation may be the best way to handle this unless something else can be found. In typical MS style, .Net on Windows didn't error.

comment:5 Changed 9 years ago by ibboard

(In r623) Re #297: Move Categories over to key/keyref from ID/IDREF

  • Add key definition to Race schema

comment:6 Changed 9 years ago by ibboard

(In r624) Re #297: Move Categories over to key/keyref from ID/IDREF

  • Add unit tests for races with category overrides

comment:7 Changed 9 years ago by ibboard

Resolution: fixed
Status: acceptedclosed

Fixed in r624

comment:8 Changed 9 years ago by ibboard

Resolution: fixedreleased

Retro-actively tag RC1 releases as released

Note: See TracTickets for help on using tickets.