Some new work on Postgres, but not yet working and maybe a false start; apart
from that, stuff brought over from Cygnets, getting file upload working on Monorail.
This commit is contained in:
parent
9b4c13178e
commit
8a3daa78d9
61
ADL.csproj
61
ADL.csproj
|
@ -1,61 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProductVersion>9.0.21022</ProductVersion>
|
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
|
||||||
<ProjectGuid>{15DF3516-FE95-4BB0-9353-2E1E624303B8}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>ADL</RootNamespace>
|
|
||||||
<AssemblyName>ADL</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<StartupObject>
|
|
||||||
</StartupObject>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
<ItemGroup>
|
|
||||||
<Content Include="transforms\adl2canonical.xslt" />
|
|
||||||
<Content Include="transforms\adl2controllerclasses.xslt" />
|
|
||||||
<Content Include="transforms\adl2documentation.xslt" />
|
|
||||||
<Content Include="transforms\adl2entityclasses.xslt" />
|
|
||||||
<Content Include="transforms\adl2hibernate.xslt" />
|
|
||||||
<Content Include="transforms\adl2mssql.xslt" />
|
|
||||||
<Content Include="transforms\adl2psql.xslt" />
|
|
||||||
<Content Include="transforms\adl2views.xslt" />
|
|
||||||
<Content Include="transforms\base-type-include.xslt" />
|
|
||||||
<Content Include="transforms\csharp-type-include.xslt" />
|
|
||||||
<Content Include="transforms\i18n-en-GB-include.xslt" />
|
|
||||||
<Content Include="transforms\localise-transform.xslt" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="schemas\adl-1.1.dtd" />
|
|
||||||
<None Include="test.build" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
44
ADL.sln
44
ADL.sln
|
@ -1,44 +0,0 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
|
||||||
# Visual Studio 2008
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ADL", "ADL.csproj", "{15DF3516-FE95-4BB0-9353-2E1E624303B8}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CygnetToolkit", "..\CygnetToolkit\CygnetToolkit.csproj", "{77FB7DE5-1F33-4DDC-8A2E-79EF4728705E}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApp", "TestApp\TestApp.csproj", "{45578889-14A2-4A53-8391-0596369CCBA5}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\UnitTests.csproj", "{D705F7CA-EB87-48EF-8F18-7D1AD90660BA}"
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{83B41EED-23C8-4DEF-B113-46A426346E45}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
ADL.vsmdi = ADL.vsmdi
|
|
||||||
LocalTestRun.testrunconfig = LocalTestRun.testrunconfig
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{15DF3516-FE95-4BB0-9353-2E1E624303B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{15DF3516-FE95-4BB0-9353-2E1E624303B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{15DF3516-FE95-4BB0-9353-2E1E624303B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{15DF3516-FE95-4BB0-9353-2E1E624303B8}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{77FB7DE5-1F33-4DDC-8A2E-79EF4728705E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{77FB7DE5-1F33-4DDC-8A2E-79EF4728705E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{77FB7DE5-1F33-4DDC-8A2E-79EF4728705E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{77FB7DE5-1F33-4DDC-8A2E-79EF4728705E}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{45578889-14A2-4A53-8391-0596369CCBA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{45578889-14A2-4A53-8391-0596369CCBA5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{45578889-14A2-4A53-8391-0596369CCBA5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{45578889-14A2-4A53-8391-0596369CCBA5}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{D705F7CA-EB87-48EF-8F18-7D1AD90660BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{D705F7CA-EB87-48EF-8F18-7D1AD90660BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{D705F7CA-EB87-48EF-8F18-7D1AD90660BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{D705F7CA-EB87-48EF-8F18-7D1AD90660BA}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
|
@ -1,124 +0,0 @@
|
||||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProductVersion>9.0.21022</ProductVersion>
|
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
|
||||||
<ProjectGuid>{45578889-14A2-4A53-8391-0596369CCBA5}</ProjectGuid>
|
|
||||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>TestApp</RootNamespace>
|
|
||||||
<AssemblyName>TestApp</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="Castle.Core, Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL" />
|
|
||||||
<Reference Include="Castle.MonoRail.Framework, Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL" />
|
|
||||||
<Reference Include="Castle.MonoRail.Framework.Views.NVelocity, Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL" />
|
|
||||||
<Reference Include="Iesi.Collections, Version=1.0.0.3, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>L:\Castle\1.0.3RC3\Iesi.Collections.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="NHibernate, Version=1.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL" />
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Core">
|
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Data.DataSetExtensions">
|
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Web.Extensions">
|
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Xml.Linq">
|
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Drawing" />
|
|
||||||
<Reference Include="System.Web" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
<Reference Include="System.Configuration" />
|
|
||||||
<Reference Include="System.Web.Services" />
|
|
||||||
<Reference Include="System.EnterpriseServices" />
|
|
||||||
<Reference Include="System.Web.Mobile" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Content Include="Default.aspx" />
|
|
||||||
<Content Include="testapp.adl.xml" />
|
|
||||||
<Content Include="Web.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="Auto\address.auto.cs" />
|
|
||||||
<Compile Include="Auto\person.auto.cs" />
|
|
||||||
<Compile Include="Default.aspx.cs">
|
|
||||||
<DependentUpon>Default.aspx</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Default.aspx.designer.cs">
|
|
||||||
<DependentUpon>Default.aspx</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<Compile Include="Web\Controllers\Auto\AbstractadltestappController.auto.cs" />
|
|
||||||
<Compile Include="Web\Controllers\Auto\addressController.auto.cs" />
|
|
||||||
<Compile Include="Web\Controllers\Auto\personController.auto.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="Web\Views\Auto\test\address\edit.auto.vm" />
|
|
||||||
<None Include="Web\Views\Auto\test\address\list.auto.vm" />
|
|
||||||
<None Include="Web\Views\Auto\test\address\maybedelete.auto.vm" />
|
|
||||||
<None Include="Web\Views\Auto\test\person\edit.auto.vm" />
|
|
||||||
<None Include="Web\Views\Auto\test\person\maybedelete.auto.vm" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\..\CygnetToolkit\CygnetToolkit.csproj">
|
|
||||||
<Project>{77FB7DE5-1F33-4DDC-8A2E-79EF4728705E}</Project>
|
|
||||||
<Name>CygnetToolkit</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="App_Data\" />
|
|
||||||
<Folder Include="Web\bin\" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
<ProjectExtensions>
|
|
||||||
<VisualStudio>
|
|
||||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
|
||||||
<WebProjectProperties>
|
|
||||||
<UseIIS>False</UseIIS>
|
|
||||||
<AutoAssignPort>True</AutoAssignPort>
|
|
||||||
<DevelopmentServerPort>3627</DevelopmentServerPort>
|
|
||||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
|
||||||
<IISUrl>
|
|
||||||
</IISUrl>
|
|
||||||
<NTLMAuthentication>False</NTLMAuthentication>
|
|
||||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
|
||||||
</WebProjectProperties>
|
|
||||||
</FlavorProperties>
|
|
||||||
</VisualStudio>
|
|
||||||
</ProjectExtensions>
|
|
||||||
</Project>
|
|
|
@ -1,125 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
|
|
||||||
<configuration>
|
|
||||||
|
|
||||||
|
|
||||||
<configSections>
|
|
||||||
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
|
||||||
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
|
||||||
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
|
|
||||||
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
|
||||||
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
|
|
||||||
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
|
||||||
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
|
||||||
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
|
|
||||||
</sectionGroup>
|
|
||||||
</sectionGroup>
|
|
||||||
</sectionGroup>
|
|
||||||
</configSections>
|
|
||||||
|
|
||||||
|
|
||||||
<appSettings/>
|
|
||||||
<connectionStrings/>
|
|
||||||
|
|
||||||
<system.web>
|
|
||||||
<!--
|
|
||||||
Set compilation debug="true" to insert debugging
|
|
||||||
symbols into the compiled page. Because this
|
|
||||||
affects performance, set this value to true only
|
|
||||||
during development.
|
|
||||||
-->
|
|
||||||
<compilation debug="false">
|
|
||||||
|
|
||||||
<assemblies>
|
|
||||||
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
|
||||||
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
|
||||||
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
|
||||||
</assemblies>
|
|
||||||
|
|
||||||
</compilation>
|
|
||||||
<!--
|
|
||||||
The <authentication> section enables configuration
|
|
||||||
of the security authentication mode used by
|
|
||||||
ASP.NET to identify an incoming user.
|
|
||||||
-->
|
|
||||||
<authentication mode="Windows" />
|
|
||||||
<!--
|
|
||||||
The <customErrors> section enables configuration
|
|
||||||
of what to do if/when an unhandled error occurs
|
|
||||||
during the execution of a request. Specifically,
|
|
||||||
it enables developers to configure html error pages
|
|
||||||
to be displayed in place of a error stack trace.
|
|
||||||
|
|
||||||
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
|
|
||||||
<error statusCode="403" redirect="NoAccess.htm" />
|
|
||||||
<error statusCode="404" redirect="FileNotFound.htm" />
|
|
||||||
</customErrors>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<pages>
|
|
||||||
<controls>
|
|
||||||
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
</controls>
|
|
||||||
</pages>
|
|
||||||
|
|
||||||
<httpHandlers>
|
|
||||||
<remove verb="*" path="*.asmx"/>
|
|
||||||
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
|
|
||||||
</httpHandlers>
|
|
||||||
<httpModules>
|
|
||||||
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
</httpModules>
|
|
||||||
|
|
||||||
</system.web>
|
|
||||||
|
|
||||||
<system.codedom>
|
|
||||||
<compilers>
|
|
||||||
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
|
|
||||||
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<providerOption name="CompilerVersion" value="v3.5"/>
|
|
||||||
<providerOption name="WarnAsError" value="false"/>
|
|
||||||
</compiler>
|
|
||||||
</compilers>
|
|
||||||
</system.codedom>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
The system.webServer section is required for running ASP.NET AJAX under Internet
|
|
||||||
Information Services 7.0. It is not necessary for previous version of IIS.
|
|
||||||
-->
|
|
||||||
<system.webServer>
|
|
||||||
<validation validateIntegratedModeConfiguration="false"/>
|
|
||||||
<modules>
|
|
||||||
<remove name="ScriptModule" />
|
|
||||||
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
</modules>
|
|
||||||
<handlers>
|
|
||||||
<remove name="WebServiceHandlerFactory-Integrated"/>
|
|
||||||
<remove name="ScriptHandlerFactory" />
|
|
||||||
<remove name="ScriptHandlerFactoryAppServices" />
|
|
||||||
<remove name="ScriptResource" />
|
|
||||||
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
|
|
||||||
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
|
|
||||||
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
|
||||||
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
|
||||||
</handlers>
|
|
||||||
</system.webServer>
|
|
||||||
|
|
||||||
<runtime>
|
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
|
|
||||||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
|
|
||||||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
|
|
||||||
</dependentAssembly>
|
|
||||||
</assemblyBinding>
|
|
||||||
</runtime>
|
|
||||||
|
|
||||||
</configuration>
|
|
|
@ -1,115 +1,82 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!-- DOCTYPE application PUBLIC "-//CYGNETS//DTD ADL 0.1//EN" "http://www.cygnets.co.uk/schemas/adl-0.1.1.dtd" -->
|
<!DOCTYPE application PUBLIC "-//JOURNEYMAN//DTD ADL 1.4//EN"
|
||||||
<!-- DOCTYPE application SYSTEM "file:/C:/Projects/ADL/schemas/adl-0.dtd" -->
|
"http://bowyer.journeyman.cc/adl/stable/adl/schemas/adl-1.4.dtd">
|
||||||
|
<!--
|
||||||
<!--
|
|
||||||
Application Description Language framework
|
Application Description Language framework
|
||||||
testapp.adl.xml
|
testapp.adl.xml
|
||||||
|
|
||||||
the object of this file is to exercise as many aspects of ADL as possible;
|
the object of this file is to exercise as many aspects of ADL as possible;
|
||||||
it isn't expected to describe an application which does anything useful
|
in the first instance, this is an attempt to recreate PRES in ADL
|
||||||
|
|
||||||
Copyright (c) 2008 Cygnet Solutions Ltd
|
$Author: simon $
|
||||||
|
$Revision: 1.3 $
|
||||||
$Author: sb $
|
$Date: 2010-07-20 19:53:40 $
|
||||||
$Revision: 1.2 $
|
-->
|
||||||
$Date: 2008-07-01 16:08:17 $
|
<application name="pres" xmlns="http://bowyer.journeyman.cc/adl/stable/">
|
||||||
-->
|
<specification abbr="regexplib" name="RegexpLib.com" url="http://regexlib.com/"/>
|
||||||
|
<content>
|
||||||
<application name="ADLTestApp" xmlns="http://cygnets.co.uk/schemas/adl-1.2">
|
<head/>
|
||||||
<content>
|
<top/>
|
||||||
<head>
|
<foot/>
|
||||||
|
</content>
|
||||||
</head>
|
<typedef name="postcode"
|
||||||
<top>
|
pattern="^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$"
|
||||||
|
size="10" type="string">
|
||||||
</top>
|
<documentation>
|
||||||
<foot>
|
<reference abbr="regexplib" section="REDetails.aspx?regexp_id=260"/>
|
||||||
|
a postcode follows arcane rules.
|
||||||
</foot>
|
|
||||||
</content>
|
|
||||||
<typedef name="postcode" type="string" size="10"
|
|
||||||
pattern="^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$">
|
|
||||||
<documentation>
|
|
||||||
a postcode follows arcane rules; this specification from
|
|
||||||
http://regexlib.com/REDetails.aspx?regexp_id=260.
|
|
||||||
</documentation>
|
</documentation>
|
||||||
</typedef>
|
</typedef>
|
||||||
<typedef name="age" type="integer" minimum="0" maximum="120">
|
<typedef maximum="120" minimum="0" name="age" type="integer">
|
||||||
<documentation>
|
<documentation>
|
||||||
We don't believe people who claim to be over 120.
|
We don't believe people who claim to be over 120.
|
||||||
</documentation>
|
</documentation>
|
||||||
</typedef>
|
</typedef>
|
||||||
<group name="public"/>
|
<typedef name="email"
|
||||||
<group name="admin" parent="public"/>
|
pattern="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$" size="128">
|
||||||
<entity name="Person">
|
<documentation>
|
||||||
<property name="LastName" type="string" required="true" size="100" distinct="user">
|
<reference abbr="regexplib" section="REDetails.aspx?regexp_id=26"/>
|
||||||
<prompt locale="en-UK" prompt="Surname"/>
|
</documentation>
|
||||||
</property>
|
</typedef>
|
||||||
<property name="ForeNames" type="string" required="true" size="100" distinct="user">
|
<group name="public"/>
|
||||||
<prompt locale="en-UK" prompt="Fore names"/>
|
<group name="admin" parent="public"/>
|
||||||
</property>
|
<entity name="Actor">
|
||||||
<property name="Partner" type="entity" entity="Person"/>
|
<documentation>
|
||||||
<property name="Gender" type="string" size="1" required="true">
|
A real (administrative) user of this system with a first-class, database layer login,
|
||||||
<option value="M">
|
as opposed to a Subscriber with a second-class, application layer login.
|
||||||
<prompt locale="en-GB" prompt="Male"/>
|
</documentation>
|
||||||
</option>
|
<property name="Name" size="64" type="string"/>
|
||||||
<option value="F">
|
<property name="EMail" type="defined" typedef="email"/>
|
||||||
<prompt locale="en-GB" prompt="Female"/>
|
<property name="Approved" type="boolean"/>
|
||||||
</option>
|
</entity>
|
||||||
</property>
|
<entity name="Article">
|
||||||
<property name="age" type="defined" typedef="age"/>
|
<property name="Created" type="date"/>
|
||||||
<property name="Address" type="entity" entity="Address" distinct="user"/>
|
<property name="Embargo" type="date"/>
|
||||||
<property name="Friends" type="link" entity="Person"/>
|
<property entity="Category" name="Category" type="entity"/>
|
||||||
<form name="edit" properties="listed">
|
<property name="Title" size="128" type="string"/>
|
||||||
<fieldgroup name="Personal Data">
|
<property entity="Actor" name="Author" type="entity"/>
|
||||||
<documentation>
|
<property name="Location" type="entity" entity="Location"/>
|
||||||
Basic data about the person
|
</entity>
|
||||||
</documentation>
|
<entity name="Author">
|
||||||
<field property="ForeNames">
|
<property name="CanonicalName" size="128" type="string"/>
|
||||||
<prompt locale="en-GB" prompt="Fore names"/>
|
<property entity="NomDePlume" name="NomsDePlume" type="list"/>
|
||||||
</field>
|
<property name="Disambiguation" size="256" type="string">
|
||||||
<field property="LastName">
|
<documentation>
|
||||||
<prompt locale="en-GB" prompt="Surname"/>
|
If the canonical name is a common one, or there are known to be two or more authors
|
||||||
<help locale="en-GB">
|
with the same canonical name, some brief text about the author to disambiguate.
|
||||||
Family name of this person, conventionally their last name
|
</documentation>
|
||||||
</help>
|
</property>
|
||||||
</field>
|
</entity>
|
||||||
<field property="Partner"/>
|
<entity name="Book">
|
||||||
<field property="Gender"/>
|
<property entity="Article" name="Article" type="entity"/>
|
||||||
<field property="Address"/>
|
<property name="AuthorAsEntered" size="128" type="string">
|
||||||
</fieldgroup>
|
<documentation>The name of the author as entered by the original user, prior to being resolved against known authors</documentation>
|
||||||
<fieldgroup name="Community">
|
</property>
|
||||||
<field property="Friends"/>
|
<property entity="Author" name="Authors" type="link"/>
|
||||||
</fieldgroup>
|
<property name="Title" size="128" type="string"/>
|
||||||
</form>
|
</entity>
|
||||||
</entity>
|
<entity name="NomDePlume">
|
||||||
<entity name="Address">
|
<property name="Name" size="128" type="string"/>
|
||||||
<key>
|
<property entity="Author" name="Author" type="entity"/>
|
||||||
<property name="Number" type="string" size="8" distinct="all">
|
</entity>
|
||||||
<prompt locale="en-GB" prompt="House number"/>
|
</application>
|
||||||
<help locale="en-GB">
|
|
||||||
House or building number
|
|
||||||
</help>
|
|
||||||
</property>
|
|
||||||
<property name="Postcode" type="defined" typedef="postcode" required="false" distinct="all">
|
|
||||||
<prompt locale="en-UK" prompt="Post code"/>
|
|
||||||
</property>
|
|
||||||
</key>
|
|
||||||
<property name="Address1" type="string" required="true" size="255">
|
|
||||||
<prompt locale="en-UK" prompt="Address"/>
|
|
||||||
</property>
|
|
||||||
<property name="Address2" type="string" required="false" size="255">
|
|
||||||
<prompt locale="en-UK" prompt="Line 2"/>
|
|
||||||
</property>
|
|
||||||
<property name="Address3" type="string" required="false" size="255">
|
|
||||||
<prompt locale="en-UK" prompt="Line 3"/>
|
|
||||||
</property>
|
|
||||||
<property name="City" type="string" required="false" size="255">
|
|
||||||
<prompt locale="en-UK" prompt="Post town"/>
|
|
||||||
</property>
|
|
||||||
<property name="County" type="string" required="false" size="255" />
|
|
||||||
<form name="edit" properties="all"/>
|
|
||||||
<list name="list" properties="user-distinct"/>
|
|
||||||
</entity>
|
|
||||||
</application>
|
|
||||||
|
|
1229
schemas/adl-1.4.dtd
1229
schemas/adl-1.4.dtd
File diff suppressed because it is too large
Load diff
165
test.build
165
test.build
|
@ -1,165 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<project name="ADL-Test-App" default="build"
|
|
||||||
xmlns="http://nant.sf.net/release/0.85-rc4/nant.xsd"
|
|
||||||
xmlns:nant="http://nant.sf.net/release/0.85-rc4/nant.xsd"
|
|
||||||
>
|
|
||||||
<property name="build.revision" value="$Revision: 1.5 $"/>
|
|
||||||
|
|
||||||
<property name="adl" value="."/>
|
|
||||||
<property name="adl-transforms" value="${adl}/transforms"/>
|
|
||||||
<property name="testapp" value="testapp"/>
|
|
||||||
<property name="rootns" value="Cygnet.ADL.TestApp"/>
|
|
||||||
<property name="entityns" value="${rootns}.Entities"/>
|
|
||||||
<property name="controllerns" value="${rootns}.Controllers"/>
|
|
||||||
|
|
||||||
<property name="controllers" value="testapp/Web/Controllers"/>
|
|
||||||
<property name="views" value="testapp/Web/Views" />
|
|
||||||
|
|
||||||
<property name="formcontroller" value="testapp/Web/Controllers/Form"/>
|
|
||||||
<property name="formview" value="testapp/Web/Views/Form"/>
|
|
||||||
<property name="bindir" value="testapp/Web/bin"/>
|
|
||||||
<property name="tmpdir" value="tmp"/>
|
|
||||||
|
|
||||||
<property name="adl-src" value="${testapp}/testapp.adl.xml" />
|
|
||||||
<property name="canonical" value="${tmpdir}/testapp.adl.xml" />
|
|
||||||
<property name="area-name" value="test"/>
|
|
||||||
<property name="nant-tasks" value="${tmpdir}/NantTasks.dll"/>
|
|
||||||
<property name="nant-contrib-dll" value="C:\Program Files\nantcontrib-0.85\bin\NAnt.Contrib.Tasks.dll"/>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="fetchtasks" depends="prepare"
|
|
||||||
description="fetches our NantTaks library from the well known place where it resides">
|
|
||||||
<get src="http://libs.cygnets.co.uk/NantTasks.dll" dest="${nant-tasks}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="canonicalise" description="generates adl for testapp entities">
|
|
||||||
<!-- adl2canonical.xslt -->
|
|
||||||
<style verbose="true" style="${adl-transforms}/adl2canonical.xslt"
|
|
||||||
in="${adl-src}"
|
|
||||||
out="${canonical}">
|
|
||||||
<parameters>
|
|
||||||
<parameter name="abstract-key-name-convention" value="Name_Id"/>
|
|
||||||
</parameters>
|
|
||||||
</style>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="analyse">
|
|
||||||
<loadtasks assembly="${nant-contrib-dll}" />
|
|
||||||
<fxcop directOutputToConsole="true" projectFile="${testapp}/TestApp.fxcop">
|
|
||||||
</fxcop>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="hbm" description="generates adl for testapp database NHibernate mapping"
|
|
||||||
depends="canonicalise">
|
|
||||||
<style verbose="true" style="${adl-transforms}/adl2hibernate.xslt"
|
|
||||||
in="${canonical}"
|
|
||||||
out="${tmpdir}/testapp.hbm.xml">
|
|
||||||
<parameters>
|
|
||||||
<parameter name="namespace" value="${entityns}"/>
|
|
||||||
<parameter name="assembly" value="${rootns}"/>
|
|
||||||
</parameters>
|
|
||||||
</style>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="sql" description="Generates testapp database initialisation script"
|
|
||||||
depends="canonicalise">
|
|
||||||
<style verbose="true" style="${adl-transforms}/adl2mssql.xslt"
|
|
||||||
in="${canonical}"
|
|
||||||
out="${testapp}/testapp.auto.sql">
|
|
||||||
<parameters>
|
|
||||||
<parameter name="abstract-key-name-convention" value="Name_Id"/>
|
|
||||||
<parameter name="database" value="ADL_TestApp"/>
|
|
||||||
</parameters>
|
|
||||||
</style>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="entities" description="creates C# classes for entities in the database"
|
|
||||||
depends="fetchtasks canonicalise">
|
|
||||||
<loadtasks assembly="${nant-tasks}" />
|
|
||||||
|
|
||||||
<style verbose="true" style="${adl-transforms}/adl2entityclass.xslt"
|
|
||||||
in="${canonical}"
|
|
||||||
out="${tmpdir}/classes.auto.cs">
|
|
||||||
<parameters>
|
|
||||||
<parameter name="locale" value="en-UK"/>
|
|
||||||
<parameter name="controllerns" value="${controllerns}"/>
|
|
||||||
<parameter name="entityns" value="${entityns}"/>
|
|
||||||
</parameters>
|
|
||||||
</style>
|
|
||||||
<exec program="c:\Program Files\astyle\bin\astyle.exe"
|
|
||||||
basedir="."
|
|
||||||
commandline="--style=java --indent=tab=4 --indent-namespaces ${tmpdir}/classes.auto.cs"/>
|
|
||||||
<split-regex in="${tmpdir}/classes.auto.cs"
|
|
||||||
destdir="${testapp}/Auto"
|
|
||||||
pattern="cut here: next file '([a-zA-Z0-9_.]*)'"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="views" description="creates Velocity templates"
|
|
||||||
depends="fetchtasks canonicalise">
|
|
||||||
<loadtasks assembly="${nant-tasks}" />
|
|
||||||
|
|
||||||
<style verbose="true" style="${adl-transforms}/adl2views.xslt"
|
|
||||||
in="${canonical}"
|
|
||||||
out="${tmpdir}/views.auto.vm">
|
|
||||||
<parameters>
|
|
||||||
<parameter name="layout-name" value="default"/>
|
|
||||||
<parameter name="locale" value="en-UK"/>
|
|
||||||
<parameter name="controllerns" value="${controllerns}"/>
|
|
||||||
<parameter name="entityns" value="${entityns}"/>
|
|
||||||
<parameter name="generate-site-navigation" value="false"/>
|
|
||||||
<parameter name="permissions-group" value="partsbookeditors"/>
|
|
||||||
<parameter name="area-name" value="${area-name}"/>
|
|
||||||
<parameter name="show-messages" value="true"/>
|
|
||||||
</parameters>
|
|
||||||
</style>
|
|
||||||
<split-regex in="${tmpdir}/views.auto.vm"
|
|
||||||
destdir="${views}/Auto/${area-name}" pattern="cut here: next file '([a-zA-Z0-9_./]*)'"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="controllers" description="creates C# controller classes" depends="fetchtasks canonicalise">
|
|
||||||
<loadtasks assembly="${nant-tasks}" />
|
|
||||||
<style verbose="true" style="${adl-transforms}/adl2controllerclasses.xslt"
|
|
||||||
in="${canonical}"
|
|
||||||
out="${tmpdir}/controllers.auto.cs">
|
|
||||||
|
|
||||||
<parameters>
|
|
||||||
<parameter name="locale" value="en-UK"/>
|
|
||||||
<parameter name="controllerns" value="${controllerns}"/>
|
|
||||||
<parameter name="entityns" value="${entityns}"/>
|
|
||||||
<parameter name="layout-name" value="default"/>
|
|
||||||
<parameter name="rescue-name" value="generalerror"/>
|
|
||||||
<parameter name="area-name" value="${area-name}"/>
|
|
||||||
</parameters>
|
|
||||||
</style>
|
|
||||||
<exec program="c:\Program Files\astyle\bin\astyle.exe"
|
|
||||||
basedir="."
|
|
||||||
commandline="--style=java --indent=tab=4 --indent-namespaces ${tmpdir}/controllers.auto.cs"/>
|
|
||||||
<split-regex in="${tmpdir}/controllers.auto.cs"
|
|
||||||
destdir="${controllers}/Auto" pattern="cut here: next file '([a-zA-Z0-9_.]*)'"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="prepare" description="prepare directories used during the build">
|
|
||||||
<mkdir dir="${bindir}" failonerror="false"/>
|
|
||||||
<mkdir dir="${tmpdir}" failonerror="false"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean" description="removes all products of the build process except the xml-ised database schema">
|
|
||||||
<delete>
|
|
||||||
<fileset>
|
|
||||||
<include name="**/*.auto.*"/>
|
|
||||||
</fileset>
|
|
||||||
</delete>
|
|
||||||
<delete failonerror="false" dir="${bindir}"/>
|
|
||||||
<delete failonerror="false" dir="${tmpdir}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="build" depends="prepare entities controllers views sql hbm"
|
|
||||||
description="compiles Visual Studio solution using msbuild">
|
|
||||||
<exec program="msbuild.exe"
|
|
||||||
basedir="c:\windows\microsoft.net\framework\v3.5\"
|
|
||||||
commandline="ADL.sln"/>
|
|
||||||
</target>
|
|
||||||
<target name="deploy" depends="clean build"/>
|
|
||||||
|
|
||||||
</project>
|
|
|
@ -19,14 +19,14 @@
|
||||||
every entity, form, page, list or field, the canonical form should
|
every entity, form, page, list or field, the canonical form should
|
||||||
explicitly state the permission, even if it is 'none'.
|
explicitly state the permission, even if it is 'none'.
|
||||||
|
|
||||||
$Author: sb $
|
$Author: simon $
|
||||||
$Revision: 1.9 $
|
$Revision: 1.10 $
|
||||||
$Date: 2010-01-12 17:20:17 $
|
$Date: 2010-07-20 19:53:40 $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
xmlns:adl="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns:adl="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
exclude-result-prefixes="adl">
|
exclude-result-prefixes="adl">
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
* THIS FILE IS AUTOMATICALLY GENERATED AND SHOULD NOT
|
* THIS FILE IS AUTOMATICALLY GENERATED AND SHOULD NOT
|
||||||
* BE MANUALLY EDITED.
|
* BE MANUALLY EDITED.
|
||||||
*
|
*
|
||||||
* Generated using adl2canonical.xslt <xsl:value-of select="substring('$Revision: 1.9 $', 12)"/>
|
* Generated using adl2canonical.xslt <xsl:value-of select="substring('$Revision: 1.10 $', 12)"/>
|
||||||
*
|
*
|
||||||
***************************************************************************
|
***************************************************************************
|
||||||
</xsl:comment>
|
</xsl:comment>
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
xmlns:adl="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns:adl="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
<xsl:output encoding="UTF-8" method="xml" indent="yes" />
|
<xsl:output encoding="UTF-8" method="xml" indent="yes" />
|
||||||
|
|
||||||
|
|
|
@ -7,17 +7,17 @@
|
||||||
|
|
||||||
Transform ADL into C# entity classes
|
Transform ADL into C# entity classes
|
||||||
|
|
||||||
$Author: sb $
|
$Author: simon $
|
||||||
$Revision: 1.28 $
|
$Revision: 1.29 $
|
||||||
$Date: 2010-06-01 17:29:02 $
|
$Date: 2010-07-20 19:53:40 $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- WARNING WARNING WARNING: Do NOT reformat this file!
|
<!-- WARNING WARNING WARNING: Do NOT reformat this file!
|
||||||
Whitespace (or lack of it) is significant! -->
|
Whitespace (or lack of it) is significant! -->
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
xmlns:exsl="http://exslt.org/common"
|
xmlns:exsl="http://exslt.org/common"
|
||||||
xmlns:adl="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns:adl="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
xmlns:msxsl="urn:schemas-microsoft-com:xslt">
|
xmlns:msxsl="urn:schemas-microsoft-com:xslt">
|
||||||
|
|
||||||
<xsl:include href="csharp-type-include.xslt"/>
|
<xsl:include href="csharp-type-include.xslt"/>
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
// (c)2007 Cygnet Solutions Ltd
|
// (c)2007 Cygnet Solutions Ltd
|
||||||
//
|
//
|
||||||
// Automatically generated from application description using
|
// Automatically generated from application description using
|
||||||
// adl2entityclass.xsl revision <xsl:value-of select="substring( '$Revision: 1.28 $', 10)"/>
|
// adl2entityclass.xsl revision <xsl:value-of select="substring( '$Revision: 1.29 $', 10)"/>
|
||||||
//
|
//
|
||||||
// <xsl:value-of select="/adl:application/@revision"/>
|
// <xsl:value-of select="/adl:application/@revision"/>
|
||||||
//
|
//
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Automatically generated from description of group <xsl:value-of select="@name"/>
|
/// Automatically generated from description of group <xsl:value-of select="@name"/>
|
||||||
/// using adl2entityclass.xsl revision <xsl:value-of select="substring( '$Revision: 1.28 $', 10)"/>.
|
/// using adl2entityclass.xsl revision <xsl:value-of select="substring( '$Revision: 1.29 $', 10)"/>.
|
||||||
///
|
///
|
||||||
/// DO NOT EDIT THIS FILE!
|
/// DO NOT EDIT THIS FILE!
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
// (c)2007 Cygnet Solutions Ltd
|
// (c)2007 Cygnet Solutions Ltd
|
||||||
//
|
//
|
||||||
// Automatically generated from application description using
|
// Automatically generated from application description using
|
||||||
// adl2entityclass.xsl revision <xsl:value-of select="substring( '$Revision: 1.28 $', 10)"/>
|
// adl2entityclass.xsl revision <xsl:value-of select="substring( '$Revision: 1.29 $', 10)"/>
|
||||||
//
|
//
|
||||||
// <xsl:value-of select="/adl:application/@revision"/>
|
// <xsl:value-of select="/adl:application/@revision"/>
|
||||||
//
|
//
|
||||||
|
@ -159,7 +159,7 @@
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Automatically generated from description of entity <xsl:value-of select="@name"/>
|
/// Automatically generated from description of entity <xsl:value-of select="@name"/>
|
||||||
/// using adl2entityclass.xsl revision <xsl:value-of select="substring( '$Revision: 1.28 $', 10)"/>.
|
/// using adl2entityclass.xsl revision <xsl:value-of select="substring( '$Revision: 1.29 $', 10)"/>.
|
||||||
/// Note that manually maintained parts of this class may be defined in
|
/// Note that manually maintained parts of this class may be defined in
|
||||||
/// a separate file called <xsl:value-of select="@name"/>.manual.cs, q.v.
|
/// a separate file called <xsl:value-of select="@name"/>.manual.cs, q.v.
|
||||||
///
|
///
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="urn:nhibernate-mapping-2.2"
|
xmlns="urn:nhibernate-mapping-2.2"
|
||||||
xmlns:adl="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns:adl="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
<!--
|
<!--
|
||||||
Application Description Framework
|
Application Description Framework
|
||||||
|
@ -11,8 +11,8 @@
|
||||||
|
|
||||||
Transform ADL to Hibernate
|
Transform ADL to Hibernate
|
||||||
|
|
||||||
$Author: sb $
|
$Author: simon $
|
||||||
$Revision: 1.10 $
|
$Revision: 1.11 $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<xsl:param name="namespace"/>
|
<xsl:param name="namespace"/>
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
*
|
*
|
||||||
* <xsl:value-of select="@revision"/>
|
* <xsl:value-of select="@revision"/>
|
||||||
*
|
*
|
||||||
* Generated using adl2hibernate.xslt revision <xsl:value-of select="substring('$Revision: 1.10 $', 12)"/>
|
* Generated using adl2hibernate.xslt revision <xsl:value-of select="substring('$Revision: 1.11 $', 12)"/>
|
||||||
*
|
*
|
||||||
***************************************************************************
|
***************************************************************************
|
||||||
</xsl:comment>
|
</xsl:comment>
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,8 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
<xsl:stylesheet version="1.0"
|
||||||
|
xmlns="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
|
xmlns:adl="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
<!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
|
<!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<!-- adl2psql.xsl -->
|
<!-- adl2psql.xsl -->
|
||||||
|
@ -18,7 +21,7 @@
|
||||||
<!--
|
<!--
|
||||||
JACQUARD 2 APPLICATION DESCRIPTION LANGUAGE FRAMEWORK
|
JACQUARD 2 APPLICATION DESCRIPTION LANGUAGE FRAMEWORK
|
||||||
|
|
||||||
$Revision: 1.2 $
|
$Revision: 1.3 $
|
||||||
|
|
||||||
NOTES:
|
NOTES:
|
||||||
|
|
||||||
|
@ -35,41 +38,137 @@
|
||||||
two removes (i.e. the 'distinguish' mechanism in ADL
|
two removes (i.e. the 'distinguish' mechanism in ADL
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<xsl:output indent="no" encoding="UTF-8" method="text"/>
|
<xsl:include href="base-type-include.xslt"/>
|
||||||
|
|
||||||
<xsl:template match="application">
|
<!--
|
||||||
|
The convention to use for naming auto-generated abstract primary keys. Known values are
|
||||||
|
Id - the autogenerated primary key, if any, is called just 'Id'
|
||||||
|
Name - the autogenerated primary key has the same name as the entity
|
||||||
|
NameId - the name of the auto generated primary key is the name of the entity followed by 'Id'
|
||||||
|
Name_Id - the name of the auto generated primary key is the name of the entity followed by '_Id'
|
||||||
|
-->
|
||||||
|
<xsl:param name="abstract-key-name-convention" select="Id"/>
|
||||||
|
|
||||||
|
<!-- the convention to use for fieldnames in link tables:
|
||||||
|
Name - the name of the foreign key is the same as the name of the table linked to
|
||||||
|
NameId - the name of the foreign key is the same as the name of the table linked to, followed by 'Id'
|
||||||
|
Name_Id - the name of the foreign key is the same as the name of the table linked to, followed by '_Id'
|
||||||
|
Name_Link - the name of the foreign key is the same as the name of the table linked to, followed by '_Link'
|
||||||
|
-->
|
||||||
|
<xsl:param name="linktable-field-name-convention" select="Name"/>
|
||||||
|
|
||||||
|
<xsl:param name="database"/>
|
||||||
|
<!-- the name and version of the product being built -->
|
||||||
|
<xsl:param name="product-version" select="'Application Description Language Framework'"/>
|
||||||
|
|
||||||
|
<!-- define upper and lower case letters to enable case conversion -->
|
||||||
|
<xsl:variable name="ucase">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
|
||||||
|
<xsl:variable name="lcase">abcdefghijklmnopqrstuvwxyz</xsl:variable>
|
||||||
|
<!-- define SQL keywords to police these out of field names -->
|
||||||
|
<xsl:variable name="sqlkeywords-multiline">
|
||||||
|
ADD EXCEPT PERCENT
|
||||||
|
ALL EXEC PLAN
|
||||||
|
ALTER EXECUTE PRECISION
|
||||||
|
AND EXISTS PRIMARY
|
||||||
|
ANY EXIT PRINT
|
||||||
|
AS FETCH PROC
|
||||||
|
ASC FILE PROCEDURE
|
||||||
|
AUTHORIZATION FILLFACTOR PUBLIC
|
||||||
|
BACKUP FOR RAISERROR
|
||||||
|
BEGIN FOREIGN READ
|
||||||
|
BETWEEN FREETEXT READTEXT
|
||||||
|
BREAK FREETEXTTABLE RECONFIGURE
|
||||||
|
BROWSE FROM REFERENCES
|
||||||
|
BULK FULL REPLICATION
|
||||||
|
BY FUNCTION RESTORE
|
||||||
|
CASCADE GOTO RESTRICT
|
||||||
|
CASE GRANT RETURN
|
||||||
|
CHECK GROUP REVOKE
|
||||||
|
CHECKPOINT HAVING RIGHT
|
||||||
|
CLOSE HOLDLOCK ROLLBACK
|
||||||
|
CLUSTERED IDENTITY ROWCOUNT
|
||||||
|
COALESCE IDENTITY_INSERT ROWGUIDCOL
|
||||||
|
COLLATE IDENTITYCOL RULE
|
||||||
|
COLUMN IF SAVE
|
||||||
|
COMMIT IN SCHEMA
|
||||||
|
COMPUTE INDEX SELECT
|
||||||
|
CONSTRAINT INNER SESSION_USER
|
||||||
|
CONTAINS INSERT SET
|
||||||
|
CONTAINSTABLE INTERSECT SETUSER
|
||||||
|
CONTINUE INTO SHUTDOWN
|
||||||
|
CONVERT IS SOME
|
||||||
|
CREATE JOIN STATISTICS
|
||||||
|
CROSS KEY SYSTEM_USER
|
||||||
|
CURRENT KILL TABLE
|
||||||
|
CURRENT_DATE LEFT TEXTSIZE
|
||||||
|
CURRENT_TIME LIKE THEN
|
||||||
|
CURRENT_TIMESTAMP LINENO TO
|
||||||
|
CURRENT_USER LOAD TOP
|
||||||
|
CURSOR NATIONAL TRAN
|
||||||
|
DATABASE NOCHECK TRANSACTION
|
||||||
|
DBCC NONCLUSTERED TRIGGER
|
||||||
|
DEALLOCATE NOT TRUNCATE
|
||||||
|
DECLARE NULL TSEQUAL
|
||||||
|
DEFAULT NULLIF UNION
|
||||||
|
DELETE OF UNIQUE
|
||||||
|
DENY OFF UPDATE
|
||||||
|
DESC OFFSETS UPDATETEXT
|
||||||
|
DISK ON USE
|
||||||
|
DISTINCT OPEN USER
|
||||||
|
DISTRIBUTED OPENDATASOURCE VALUES
|
||||||
|
DOUBLE OPENQUERY VARYING
|
||||||
|
DROP OPENROWSET VIEW
|
||||||
|
DUMMY OPENXML WAITFOR
|
||||||
|
DUMP OPTION WHEN
|
||||||
|
ELSE OR WHERE
|
||||||
|
END ORDER WHILE
|
||||||
|
ERRLVL OUTER WITH
|
||||||
|
ESCAPE OVER WRITETEXT
|
||||||
|
</xsl:variable>
|
||||||
|
<xsl:variable name="sqlkeywords" select="concat(' ', normalize-space($sqlkeywords-multiline), ' ')"/>
|
||||||
|
|
||||||
|
|
||||||
|
<xsl:template match="adl:application">
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
--
|
--
|
||||||
-- Database for application <xsl:value-of select="@name"/> version <xsl:value-of select="@version"/>
|
-- <xsl:value-of select="$product-version"/>
|
||||||
-- Generated for PostgreSQL [7|8] using adl2psql.xsl $Revision: 1.2 $
|
|
||||||
--
|
--
|
||||||
|
-- Database for application <xsl:value-of select="@name"/> version <xsl:value-of select="@version"/>
|
||||||
|
-- Generated for PostgreSQL [7|8] using adl2psql.xsl $Revision: 1.3 $
|
||||||
|
--
|
||||||
|
-- <xsl:value-of select="@revision"/>
|
||||||
|
--
|
||||||
-- Code generator (c) 2006 Simon Brooke [simon@weft.co.uk]
|
-- Code generator (c) 2006 Simon Brooke [simon@weft.co.uk]
|
||||||
-- http://www.weft.co.uk/library/jacquard/
|
-- http://www.weft.co.uk/library/jacquard/
|
||||||
--
|
--
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
<xsl:if test="string-length( $database) > 0">
|
||||||
|
use "<xsl:value-of select="$database"/>";
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
-- authentication roles
|
-- authentication roles
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
<xsl:apply-templates select="group"/>
|
<xsl:apply-templates select="adl:group"/>
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
-- tables, views and permissions
|
-- tables, views and permissions
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
<xsl:apply-templates select="entity"/>
|
<xsl:apply-templates select="adl:entity"/>
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
-- referential integrity constraints
|
-- referential integrity constraints
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
<xsl:for-each select="entity">
|
<xsl:for-each select="adl:entity">
|
||||||
<xsl:variable name="nearside" select="@name"/>
|
<xsl:variable name="nearside" select="@name"/>
|
||||||
<xsl:for-each select="property[@type='entity']">
|
<xsl:for-each select="adl:property[@type='entity']">
|
||||||
<xsl:call-template name="referentialintegrity">
|
<xsl:call-template name="referentialintegrity">
|
||||||
<xsl:with-param name="nearside" select="$nearside"/>
|
<xsl:with-param name="nearside" select="$nearside"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
<xsl:for-each select="property[@type='link']">
|
<xsl:for-each select="adl:property[@type='link']">
|
||||||
<xsl:call-template name="linkintegrity">
|
<xsl:call-template name="linkintegrity">
|
||||||
<xsl:with-param name="nearside" select="$nearside"/>
|
<xsl:with-param name="nearside" select="$nearside"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
@ -81,7 +180,15 @@
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="group">
|
<xsl:template match="adl:documentation">
|
||||||
|
/* <xsl:apply-templates/> */
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="adl:group">
|
||||||
|
-------------------------------------------------------------------------------------------------
|
||||||
|
-- security group <xsl:value-of select="@name"/>
|
||||||
|
-------------------------------------------------------------------------------------------------
|
||||||
|
<xsl:apply-templates select="adl:documentation"/>
|
||||||
CREATE GROUP <xsl:value-of select="@name"/>;
|
CREATE GROUP <xsl:value-of select="@name"/>;
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
@ -108,7 +215,7 @@
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<xsl:template match="entity">
|
<xsl:template match="adl:entity">
|
||||||
<xsl:variable name="table" select="@name"/>
|
<xsl:variable name="table" select="@name"/>
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
|
@ -116,12 +223,17 @@
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
CREATE TABLE <xsl:value-of select="@name"/>
|
CREATE TABLE <xsl:value-of select="@name"/>
|
||||||
(
|
(
|
||||||
<xsl:apply-templates select="property[@type!='link']"/>
|
<xsl:for-each select="descendant::adl:property[@type!='link']">
|
||||||
<xsl:value-of select="@name"/>_id SERIAL NOT NULL PRIMARY KEY
|
<xsl:apply-templates select="."/><xsl:choose>
|
||||||
|
<xsl:when test="position() = last()"/>
|
||||||
|
<xsl:otherwise>,<xsl:text>
|
||||||
|
</xsl:text></xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:for-each>
|
||||||
);
|
);
|
||||||
|
|
||||||
---- permissions ------------------------------------------------------------------------------
|
---- permissions ------------------------------------------------------------------------------
|
||||||
<xsl:for-each select="permission">
|
<xsl:for-each select="adl:permission">
|
||||||
<xsl:call-template name="permission">
|
<xsl:call-template name="permission">
|
||||||
<xsl:with-param name="table" select="$table"/>
|
<xsl:with-param name="table" select="$table"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
@ -130,7 +242,7 @@
|
||||||
-- convenience view lv<xsl:value-of select="concat( '_', @name)"/> for lists
|
-- convenience view lv<xsl:value-of select="concat( '_', @name)"/> for lists
|
||||||
-------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------
|
||||||
CREATE VIEW lv<xsl:value-of select="concat( '_', @name)"/> AS
|
CREATE VIEW lv<xsl:value-of select="concat( '_', @name)"/> AS
|
||||||
SELECT <xsl:for-each select="property[@type!='link']">
|
SELECT <xsl:for-each select="adl:property[@type!='link']">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="@type='entity'">
|
<xsl:when test="@type='entity'">
|
||||||
<xsl:call-template name="distinctfield">
|
<xsl:call-template name="distinctfield">
|
||||||
|
@ -147,10 +259,10 @@
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
FROM <xsl:value-of select="@name"/>
|
FROM <xsl:value-of select="@name"/>
|
||||||
<xsl:for-each select="property[@type='entity']">, <xsl:value-of select="@entity"/> AS <xsl:value-of select="@name"/></xsl:for-each>
|
<xsl:for-each select="adl:property[@type='entity']">, <xsl:value-of select="@entity"/> AS <xsl:value-of select="@name"/></xsl:for-each>
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
</xsl:text>
|
</xsl:text>
|
||||||
<xsl:for-each select="property[@type='entity']">
|
<xsl:for-each select="adl:property[@type='entity']">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="position() = 1">WHERE </xsl:when>
|
<xsl:when test="position() = 1">WHERE </xsl:when>
|
||||||
<xsl:otherwise>AND </xsl:otherwise>
|
<xsl:otherwise>AND </xsl:otherwise>
|
||||||
|
@ -159,14 +271,14 @@
|
||||||
</xsl:for-each>;
|
</xsl:for-each>;
|
||||||
|
|
||||||
---- permissions ------------------------------------------------------------------------------
|
---- permissions ------------------------------------------------------------------------------
|
||||||
<xsl:for-each select="permission">
|
<xsl:for-each select="adl:permission">
|
||||||
<xsl:call-template name="viewpermission">
|
<xsl:call-template name="viewpermission">
|
||||||
<xsl:with-param name="table" select="$table"/>
|
<xsl:with-param name="table" select="$table"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
|
||||||
<!-- link tables -->
|
<!-- link tables -->
|
||||||
<xsl:for-each select="property[@type='link']">
|
<xsl:for-each select="adl:property[@type='link']">
|
||||||
<xsl:call-template name="linktable">
|
<xsl:call-template name="linktable">
|
||||||
<xsl:with-param name="nearside" select="$table"/>
|
<xsl:with-param name="nearside" select="$table"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
@ -273,14 +385,13 @@
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="property[@type='entity']">
|
<xsl:template match="adl:property[@type='entity']">
|
||||||
<xsl:value-of select="@name"/> INT<xsl:if
|
<xsl:value-of select="@name"/> INT<xsl:if
|
||||||
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:if
|
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:if
|
||||||
test="@required='true'"> NOT NULL</xsl:if>,<xsl:text>
|
test="@required='true'"> NOT NULL</xsl:if>
|
||||||
</xsl:text>
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="property[@type='defined']">
|
<xsl:template match="adl:property[@type='defined']">
|
||||||
<xsl:variable name="name"><xsl:value-of select="@definition"/></xsl:variable>
|
<xsl:variable name="name"><xsl:value-of select="@definition"/></xsl:variable>
|
||||||
<xsl:variable name="definitiontype"><xsl:value-of select="/application/definition[@name=$name]/@type"/></xsl:variable>
|
<xsl:variable name="definitiontype"><xsl:value-of select="/application/definition[@name=$name]/@type"/></xsl:variable>
|
||||||
<xsl:value-of select="@name"/><xsl:text> </xsl:text><xsl:choose>
|
<xsl:value-of select="@name"/><xsl:text> </xsl:text><xsl:choose>
|
||||||
|
@ -290,37 +401,40 @@
|
||||||
<xsl:when test="$definitiontype='real'">DOUBLE PRECISION</xsl:when>
|
<xsl:when test="$definitiontype='real'">DOUBLE PRECISION</xsl:when>
|
||||||
<xsl:otherwise><xsl:value-of select="$definitiontype"/></xsl:otherwise>
|
<xsl:otherwise><xsl:value-of select="$definitiontype"/></xsl:otherwise>
|
||||||
</xsl:choose><xsl:if
|
</xsl:choose><xsl:if
|
||||||
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:if
|
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:choose>
|
||||||
test="@required='true'"> NOT NULL</xsl:if>,<xsl:text>
|
<xsl:when test="parent::adl:key"> NOT NULL PRIMARY KEY</xsl:when>
|
||||||
</xsl:text>
|
<xsl:when test="@required='true'"> NOT NULL</xsl:when>
|
||||||
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="property[@type='string']">
|
<xsl:template match="adl:property[@type='string']">
|
||||||
<xsl:value-of select="@name"/> VARCHAR( <xsl:value-of select="@size"/>)<xsl:if
|
<xsl:value-of select="@name"/> VARCHAR( <xsl:value-of select="@size"/>)<xsl:if
|
||||||
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:if
|
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:choose>
|
||||||
test="@required='true'"> NOT NULL</xsl:if>,<xsl:text>
|
<xsl:when test="parent::adl:key"> NOT NULL PRIMARY KEY</xsl:when>
|
||||||
</xsl:text>
|
<xsl:when test="@required='true'"> NOT NULL</xsl:when>
|
||||||
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="property[@type='integer']">
|
<xsl:template match="adl:property[@type='integer']">
|
||||||
<xsl:value-of select="@name"/> INT<xsl:if
|
<xsl:value-of select="@name"/> INT<xsl:if
|
||||||
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:if
|
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:choose>
|
||||||
test="@required='true'"> NOT NULL</xsl:if>,<xsl:text>
|
<xsl:when test="parent::adl:key"> NOT NULL PRIMARY KEY</xsl:when>
|
||||||
</xsl:text>
|
<xsl:when test="@required='true'"> NOT NULL</xsl:when>
|
||||||
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="property[@type='real']">
|
<xsl:template match="adl:property[@type='real']">
|
||||||
<xsl:value-of select="@name"/> DOUBLE PRECISION<xsl:if
|
<xsl:value-of select="@name"/> DOUBLE PRECISION<xsl:if
|
||||||
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:if
|
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:if
|
||||||
test="@required='true'"> NOT NULL</xsl:if>,<xsl:text>
|
test="@required='true'"> NOT NULL</xsl:if>
|
||||||
</xsl:text>
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="property">
|
<xsl:template match="adl:property">
|
||||||
<xsl:value-of select="@name"/> <xsl:text> </xsl:text><xsl:value-of select="@type"/><xsl:if
|
<xsl:value-of select="@name"/> <xsl:text> </xsl:text><xsl:value-of select="@type"/><xsl:if
|
||||||
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:if
|
test="string(@default)"> DEFAULT <xsl:value-of select="@default"/></xsl:if><xsl:choose>
|
||||||
test="@required='true'"> NOT NULL</xsl:if>,<xsl:text>
|
<xsl:when test="parent::adl:key"> NOT NULL PRIMARY KEY</xsl:when>
|
||||||
</xsl:text>
|
<xsl:when test="@required='true'"> NOT NULL</xsl:when>
|
||||||
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,75 +1,75 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<!--
|
<!--
|
||||||
Application Description Language framework
|
Application Description Language framework
|
||||||
base-type-include.xslt
|
base-type-include.xslt
|
||||||
|
|
||||||
(c) 2007 Cygnet Solutions Ltd
|
(c) 2007 Cygnet Solutions Ltd
|
||||||
|
|
||||||
An xsl transform intended to be included into other XSL stylesheets,
|
An xsl transform intended to be included into other XSL stylesheets,
|
||||||
intended to keep lookup of the ADL base type from ADL properties in
|
intended to keep lookup of the ADL base type from ADL properties in
|
||||||
one place for ease of maintenance
|
one place for ease of maintenance
|
||||||
|
|
||||||
$Author: sb $
|
$Author: simon $
|
||||||
$Revision: 1.4 $
|
$Revision: 1.5 $
|
||||||
$Date: 2010-01-12 17:20:17 $
|
$Date: 2010-07-20 19:53:40 $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns="http://libs.cygnets.co.uk/adl/1.4/"
|
||||||
xmlns:adl="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns:adl="http://libs.cygnets.co.uk/adl/1.4/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
exclude-result-prefixes="adl">
|
exclude-result-prefixes="adl">
|
||||||
|
|
||||||
|
|
||||||
<!-- return the base ADL type of the property which is passed as a parameter -->
|
<!-- return the base ADL type of the property which is passed as a parameter -->
|
||||||
<xsl:template name="base-type">
|
<xsl:template name="base-type">
|
||||||
<xsl:param name="property"/>
|
<xsl:param name="property"/>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$property/@type='defined'">
|
<xsl:when test="$property/@type='defined'">
|
||||||
<xsl:variable name="definition">
|
<xsl:variable name="definition">
|
||||||
<xsl:value-of select="$property/@typedef"/>
|
<xsl:value-of select="$property/@typedef"/>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
<xsl:value-of select="/adl:application/adl:typedef[@name=$definition]/@type"/>
|
<xsl:value-of select="/adl:application/adl:typedef[@name=$definition]/@type"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="$property/@type='serial'">integer</xsl:when>
|
<xsl:when test="$property/@type='serial'">integer</xsl:when>
|
||||||
<xsl:when test="$property/@type='message'">integer</xsl:when>
|
<xsl:when test="$property/@type='message'">integer</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="$property/@type"/>
|
<xsl:value-of select="$property/@type"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- return the size of the type of the property which is passed as a parameter -->
|
<!-- return the size of the type of the property which is passed as a parameter -->
|
||||||
<xsl:template name="base-size">
|
<xsl:template name="base-size">
|
||||||
<xsl:param name="property"/>
|
<xsl:param name="property"/>
|
||||||
<xsl:variable name="base-type">
|
<xsl:variable name="base-type">
|
||||||
<xsl:call-template name="base-type">
|
<xsl:call-template name="base-type">
|
||||||
<xsl:with-param name="property" select="$property"/>
|
<xsl:with-param name="property" select="$property"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$property/@type='defined'">
|
<xsl:when test="$property/@type='defined'">
|
||||||
<xsl:variable name="definition">
|
<xsl:variable name="definition">
|
||||||
<xsl:value-of select="$property/@typedef"/>
|
<xsl:value-of select="$property/@typedef"/>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
<xsl:value-of select="/adl:application/adl:typedef[@name=$definition]/@size"/>
|
<xsl:value-of select="/adl:application/adl:typedef[@name=$definition]/@size"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<!-- type='text' should really be unlimited, but in the real world it isn't.
|
<!-- type='text' should really be unlimited, but in the real world it isn't.
|
||||||
Furthermore, setting null values may currently break the smart form components
|
Furthermore, setting null values may currently break the smart form components
|
||||||
parser -->
|
parser -->
|
||||||
<xsl:when test="$base-type='text'">4294967296</xsl:when>
|
<xsl:when test="$base-type='text'">4294967296</xsl:when>
|
||||||
<xsl:when test="$base-type='integer'">8</xsl:when>
|
<xsl:when test="$base-type='integer'">8</xsl:when>
|
||||||
<xsl:when test="$base-type='real'">8</xsl:when>
|
<xsl:when test="$base-type='real'">8</xsl:when>
|
||||||
<xsl:when test="$base-type='money'">10</xsl:when>
|
<xsl:when test="$base-type='money'">10</xsl:when>
|
||||||
<xsl:when test="$base-type='date'">10</xsl:when>
|
<xsl:when test="$base-type='date'">10</xsl:when>
|
||||||
<xsl:when test="$base-type='time'">8</xsl:when>
|
<xsl:when test="$base-type='time'">8</xsl:when>
|
||||||
<xsl:when test="$property/@size > 0">
|
<xsl:when test="$property/@size > 0">
|
||||||
<xsl:value-of select="$property/@size"/>
|
<xsl:value-of select="$property/@size"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="$base-type"/>
|
<xsl:value-of select="$base-type"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
@ -1,99 +1,100 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<!--
|
<!--
|
||||||
Application Description Language framework
|
Application Description Language framework
|
||||||
csharp-type-include.xslt
|
csharp-type-include.xslt
|
||||||
|
|
||||||
(c) 2007 Cygnet Solutions Ltd
|
(c) 2007 Cygnet Solutions Ltd
|
||||||
|
|
||||||
An XSL transform intended to be included into other XSL stylesheets,
|
An XSL transform intended to be included into other XSL stylesheets,
|
||||||
intended to keep lookup of the C# type from ADL properties in
|
intended to keep lookup of the C# type from ADL properties in
|
||||||
one place for ease of maintenance
|
one place for ease of maintenance
|
||||||
|
|
||||||
$Author: sb $
|
$Author: simon $
|
||||||
$Revision: 1.4 $
|
$Revision: 1.5 $
|
||||||
$Date: 2010-01-12 17:20:17 $
|
$Date: 2010-07-20 19:53:40 $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns="http://libs.cygnets.co.uk/adl/1.4/"
|
||||||
xmlns:adl="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns:adl="http://libs.cygnets.co.uk/adl/1.4/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
exclude-result-prefixes="adl">
|
exclude-result-prefixes="adl">
|
||||||
|
|
||||||
<xsl:include href="base-type-include.xslt"/>
|
<xsl:include href="base-type-include.xslt"/>
|
||||||
|
|
||||||
<!-- return the primitive C# type of the property which is passed as
|
<!-- return the primitive C# type of the property which is passed as
|
||||||
a parameter - i.e. if csharp-type is an entity, then the csharp-type
|
a parameter - i.e. if csharp-type is an entity, then the csharp-type
|
||||||
of the keyfield of that entity, and so on. -->
|
of the keyfield of that entity, and so on. -->
|
||||||
<xsl:template name="csharp-base-type">
|
<xsl:template name="csharp-base-type">
|
||||||
<xsl:param name="property"/>
|
<xsl:param name="property"/>
|
||||||
<xsl:param name="entityns"/>
|
<xsl:param name="entityns"/>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$property/@type = 'entity'">
|
<xsl:when test="$property/@type = 'entity'">
|
||||||
<xsl:variable name="entityname" select="$property/@entity"/>
|
<xsl:variable name="entityname" select="$property/@entity"/>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="//adl:entity[@name=$entityname]/adl:key/adl:property">
|
<xsl:when test="//adl:entity[@name=$entityname]/adl:key/adl:property">
|
||||||
<!-- recurse... -->
|
<!-- recurse... -->
|
||||||
<xsl:call-template name="csharp-base-type">
|
<xsl:call-template name="csharp-base-type">
|
||||||
<xsl:with-param name="property"
|
<xsl:with-param name="property"
|
||||||
select="//adl:entity[@name=$entityname]/adl:key/adl:property[position()=1]"/>
|
select="//adl:entity[@name=$entityname]/adl:key/adl:property[position()=1]"/>
|
||||||
<xsl:with-param name="entityns" select="$entityns"/>
|
<xsl:with-param name="entityns" select="$entityns"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:message terminate="yes">
|
<xsl:message terminate="yes">
|
||||||
ADL: ERROR: could not find C# base type of property <xsl:value-of select="$property/@name"/>
|
ADL: ERROR: could not find C# base type of property <xsl:value-of select="$property/@name"/>
|
||||||
</xsl:message>
|
</xsl:message>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:call-template name="csharp-type">
|
<xsl:call-template name="csharp-type">
|
||||||
<xsl:with-param name="property" select="$property"/>
|
<xsl:with-param name="property" select="$property"/>
|
||||||
<xsl:with-param name="entityns" select="$entityns"/>
|
<xsl:with-param name="entityns" select="$entityns"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- return the C# type of the property which is passed as a parameter -->
|
<!-- return the C# type of the property which is passed as a parameter -->
|
||||||
<xsl:template name="csharp-type">
|
<xsl:template name="csharp-type">
|
||||||
<xsl:param name="property"/>
|
<xsl:param name="property"/>
|
||||||
<xsl:param name="entityns"/>
|
<xsl:param name="entityns"/>
|
||||||
<xsl:variable name="base-type">
|
<xsl:variable name="base-type">
|
||||||
<xsl:call-template name="base-type">
|
<xsl:call-template name="base-type">
|
||||||
<xsl:with-param name="property" select="$property"/>
|
<xsl:with-param name="property" select="$property"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$property/@type = 'message'">Message</xsl:when>
|
<xsl:when test="$property/@type = 'message'">Message</xsl:when>
|
||||||
<xsl:when test="$base-type = 'link'">
|
<xsl:when test="$base-type = 'link'">
|
||||||
ICollection<<xsl:value-of select="@entity"/>>
|
ICollection<<xsl:value-of select="@entity"/>>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="$base-type = 'list'">
|
<xsl:when test="$base-type = 'list'">
|
||||||
ICollection<<xsl:value-of select="@entity"/>>
|
ICollection<<xsl:value-of select="@entity"/>>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="$base-type = 'date'">DateTime</xsl:when>
|
<xsl:when test="$base-type = 'date'">DateTime</xsl:when>
|
||||||
<xsl:when test="$base-type = 'time'">DateTime</xsl:when>
|
<xsl:when test="$base-type = 'time'">DateTime</xsl:when>
|
||||||
<xsl:when test="$base-type = 'string'">String</xsl:when>
|
<xsl:when test="$base-type = 'string'">String</xsl:when>
|
||||||
<xsl:when test="$base-type = 'text'">String</xsl:when>
|
<xsl:when test="$base-type = 'text'">String</xsl:when>
|
||||||
<xsl:when test="$base-type = 'boolean'">Boolean</xsl:when>
|
<xsl:when test="$base-type = 'image'">String</xsl:when>
|
||||||
<xsl:when test="$base-type = 'timestamp'">DateTime</xsl:when>
|
<xsl:when test="$base-type = 'boolean'">Boolean</xsl:when>
|
||||||
<xsl:when test="$base-type = 'integer'">int</xsl:when>
|
<xsl:when test="$base-type = 'timestamp'">DateTime</xsl:when>
|
||||||
<xsl:when test="$base-type = 'real'">double</xsl:when>
|
<xsl:when test="$base-type = 'integer'">int</xsl:when>
|
||||||
<xsl:when test="$base-type = 'money'">Decimal</xsl:when>
|
<xsl:when test="$base-type = 'real'">double</xsl:when>
|
||||||
<xsl:when test="$base-type = 'entity'">
|
<xsl:when test="$base-type = 'money'">Decimal</xsl:when>
|
||||||
<xsl:choose>
|
<xsl:when test="$base-type = 'entity'">
|
||||||
<xsl:when test="$entityns">
|
<xsl:choose>
|
||||||
<xsl:value-of select="concat( $entityns, '.', $property/@entity)"/>
|
<xsl:when test="$entityns">
|
||||||
</xsl:when>
|
<xsl:value-of select="concat( $entityns, '.', $property/@entity)"/>
|
||||||
<xsl:otherwise>
|
</xsl:when>
|
||||||
<xsl:value-of select="$property/@entity"/>
|
<xsl:otherwise>
|
||||||
</xsl:otherwise>
|
<xsl:value-of select="$property/@entity"/>
|
||||||
</xsl:choose>
|
</xsl:otherwise>
|
||||||
</xsl:when>
|
</xsl:choose>
|
||||||
<xsl:otherwise>[unknown?]</xsl:otherwise>
|
</xsl:when>
|
||||||
</xsl:choose>
|
<xsl:otherwise>[unknown?]</xsl:otherwise>
|
||||||
</xsl:template>
|
</xsl:choose>
|
||||||
|
</xsl:template>
|
||||||
</xsl:stylesheet>
|
|
||||||
|
</xsl:stylesheet>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
xmlns:adl="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns:adl="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:msxsl="urn:schemas-microsoft-com:xslt">
|
xmlns:msxsl="urn:schemas-microsoft-com:xslt">
|
||||||
|
|
||||||
|
@ -21,9 +21,9 @@
|
||||||
(iii) take arguments which are strings only, not nodesets.
|
(iii) take arguments which are strings only, not nodesets.
|
||||||
Templates are listed in alphabetical order.
|
Templates are listed in alphabetical order.
|
||||||
|
|
||||||
$Author: sb $
|
$Author: simon $
|
||||||
$Revision: 1.7 $
|
$Revision: 1.8 $
|
||||||
$Date: 2010-01-12 17:20:17 $
|
$Date: 2010-07-20 19:53:40 $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<xsl:template name="i18n-add-a-new">
|
<xsl:template name="i18n-add-a-new">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
xmlns:adl="http://libs.cygnets.co.uk/adl/1.4/"
|
xmlns:adl="http://bowyer.journeyman.cc/adl/1.4/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
|
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
|
||||||
xmlns:exsl="urn:schemas-microsoft-com:xslt"
|
xmlns:exsl="urn:schemas-microsoft-com:xslt"
|
||||||
|
@ -14,9 +14,9 @@
|
||||||
|
|
||||||
Utility templates to find permissions on various things
|
Utility templates to find permissions on various things
|
||||||
|
|
||||||
$Author: sb $
|
$Author: simon $
|
||||||
$Revision: 1.6 $
|
$Revision: 1.7 $
|
||||||
$Date: 2010-01-12 17:20:17 $
|
$Date: 2010-07-20 19:53:40 $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- collect all groups which can edit the specified property -->
|
<!-- collect all groups which can edit the specified property -->
|
||||||
|
|
Loading…
Reference in a new issue