From 19a35b911532a92441efc1d6ed0a512669d47130 Mon Sep 17 00:00:00 2001 From: sb Date: Wed, 4 Feb 2009 11:32:26 +0000 Subject: [PATCH] Now doing immutable widgets correctly. --- schemas/adl-1.1.dtd | 36 ++++++------ transforms/adl2views.xslt | 114 ++++++++++++++++++++++++++------------ 2 files changed, 98 insertions(+), 52 deletions(-) diff --git a/schemas/adl-1.1.dtd b/schemas/adl-1.1.dtd index 4a09e38..2c91e2c 100755 --- a/schemas/adl-1.1.dtd +++ b/schemas/adl-1.1.dtd @@ -13,7 +13,7 @@ @@ -291,25 +291,26 @@ that we can allow HTML block level entities within content elements --> unique; distinct='all' implies that the values are formally unique /and/ are user friendly (NOTE: not implemented). - entity: if type='entity', the name of the entity this property is + entity: if type='entity', the name of the entity this property is a foreign key link to. if type='list', the name of the entity that has a foreign key link to this entity - farkey: if type='list', the name of farside key in the listed + farkey: if type='list', the name of farside key in the listed entity; if type='entity' and the farside field to join to is not the farside primary key, then the name of that farside field required: whether this propery is required (i.e. 'not null'). + immutable: if true, once a value has been set it cannot be changed. size: fieldwidth of the property if specified. - concrete: if set to 'false', this property is not stored in the + concrete: if set to 'false', this property is not stored in the database but must be computed (manually written code must be provided to support this) - cascade: what action(s) on the parent entity should be cascaded to + cascade: what action(s) on the parent entity should be cascaded to entitie(s) linked on this property. Valid only if type='entity', type='link' or type='list'. - column: name of the column in a SQL database table in which this property + column: name of the column in a SQL database table in which this property is stored. TODO: Think about this. - unsaved-value: + unsaved-value: of a property whose persistent value is set on first being committed to persistent store, the value which it holds before it has been committed @@ -318,17 +319,18 @@ that we can allow HTML block level entities within content elements --> + column CDATA #IMPLIED + concrete %Boolean; #IMPLIED + cascade (%CascadeActions;) #IMPLIED> @@ -60,6 +60,8 @@ + + @@ -118,7 +120,7 @@ Auto generated Velocity maybe-delete form for , generated from ADL. - Generated using adl2views.xslt + Generated using adl2views.xslt @@ -155,7 +157,7 @@ Auto generated Velocity maybe-delete form for , generated from ADL. - Generated using adl2views.xslt + Generated using adl2views.xslt @@ -238,7 +240,7 @@ Auto generated Velocity form for , generated from ADL. - Generated using adl2views.xslt + Generated using adl2views.xslt Generation parameters were: locale: generate-site-navigation: @@ -263,7 +265,7 @@ #capturefor( headextras)