From 22567139f3b6d93458ad5047c43a7f1b0cfa7c03 Mon Sep 17 00:00:00 2001 From: sb Date: Mon, 3 Mar 2008 17:35:28 +0000 Subject: [PATCH] More work on i18n and caching; also, work on the views generator. --- schemas/adl-0.dtd | 10 +++- transforms01/adl2controllerclasses.xslt | 9 ++-- transforms01/adl2entityclass.xslt | 21 +++++---- transforms01/adl2views.xslt | 62 ++++++++++++++++++------- 4 files changed, 73 insertions(+), 29 deletions(-) diff --git a/schemas/adl-0.dtd b/schemas/adl-0.dtd index e23142d..1101d39 100755 --- a/schemas/adl-0.dtd +++ b/schemas/adl-0.dtd @@ -13,13 +13,21 @@ + + + + + + diff --git a/transforms01/adl2controllerclasses.xslt b/transforms01/adl2controllerclasses.xslt index 857b299..c353ca1 100755 --- a/transforms01/adl2controllerclasses.xslt +++ b/transforms01/adl2controllerclasses.xslt @@ -9,8 +9,8 @@ Transform ADL into (partial) controller classes $Author: sb $ - $Revision: 1.10 $ - $Date: 2008-02-27 17:38:41 $ + $Revision: 1.11 $ + $Date: 2008-03-03 17:35:28 $ --> + select="substring( '$Revision: 1.11 $', 11)"/> @@ -129,7 +129,8 @@ namespace { /// /// DO NOT EDIT THIS FILE! /// </summary> - [ControllerDetails("", Area = "auto")] + [ Layout("empty"), Rescue("generalerror"), + ControllerDetails("", Area = "auto")] public partial class Controller : BaseController { diff --git a/transforms01/adl2entityclass.xslt b/transforms01/adl2entityclass.xslt index 780a8e1..5b61ae2 100755 --- a/transforms01/adl2entityclass.xslt +++ b/transforms01/adl2entityclass.xslt @@ -8,8 +8,8 @@ Transform ADL into entity classes $Author: sb $ - $Revision: 1.8 $ - $Date: 2008-02-29 16:28:51 $ + $Revision: 1.9 $ + $Date: 2008-03-03 17:35:28 $ --> + select="substring( '$Revision: 1.9 $', 11)"/> @@ -242,23 +242,28 @@ - result.Append( ); + if ( != null) + result.Append( ); - result.Append( ); + if ( != null) + result.Append( ); - result.Append(.ToString( "d")); + if ( != null) + result.Append(.ToString( "d")); - result.Append(.ToString( "t")); + if ( != null) + result.Append(.ToString( "t")); - result.Append(); + if ( != null) + result.Append(); diff --git a/transforms01/adl2views.xslt b/transforms01/adl2views.xslt index 0ffdd51..9ae0694 100755 --- a/transforms01/adl2views.xslt +++ b/transforms01/adl2views.xslt @@ -1,5 +1,5 @@ - @@ -12,8 +12,8 @@ Transform ADL into velocity view templates $Author: sb $ - $Revision: 1.6 $ - $Date: 2008-02-29 16:28:51 $ + $Revision: 1.7 $ + $Date: 2008-03-03 17:35:28 $ --> @@ -36,6 +36,8 @@ --> + + + select="substring( '$Revision: 1.7 $', 11)"/> @@ -86,10 +88,9 @@ - #set( $title = " $instance.UserIdentifier") - + $!title Auto generated Velocity maybe-delete form for , @@ -171,6 +172,7 @@ #end + $!title Application Description Language framework @@ -182,7 +184,6 @@ ${ScriptsHelper.InstallScript( "ShuffleWidget")} - ${Ajax.InstallScripts()} ${FormHelper.InstallScripts()} ${Validation.InstallScripts()} @@ -1048,6 +1049,7 @@ #set( $title = "") + $!title Auto generated Velocity list for , @@ -1261,23 +1263,29 @@ #end - - - + + + + + - + + + - + + + @@ -1285,21 +1293,43 @@ - + + + - + + + + + + - + + + - + + +