annotate xslt/generator.csharp.xsl @ 2:035de8b7b18e

Temporary commit, refactoring, added readme
author cin
date Sun, 25 Feb 2018 17:12:33 +0300
parents
children 437127ab6a12
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
2 <xsl:stylesheet version="1.0"
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="http://implab.org/schemas/data-model.v1.xsd"
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
4 xmlns:clr="http://implab.org/schemas/data-model/dotnet.v1.xsd"
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
5 xmlns:cs="http://implab.org/schemas/code-dom/csharp.v1.xsd" xmlns:sql="http://implab.org/schemas/data-model/sql.v1.xsd"
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
6 xmlns:t="http://implab.org/schemas/temp" xmlns:exsl="http://exslt.org/common"
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
7 exclude-result-prefixes="clr m xsl exsl sql">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
8 <xsl:import href="model.xsl"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
9
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
10 <xsl:output method="xml" indent="yes" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
11
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
12 <!-- entity -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
13 <xsl:template match="m:entity" mode="document">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
14 <xsl:apply-templates select="." mode="entity"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
15 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
16
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
17 <xsl:template match="m:entity" mode="entity">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
18 <cs:class name="{@name}" modifiers="partial">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
19 <xsl:attribute name="name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
20 <xsl:apply-templates select="." mode="class-name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
21 </xsl:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
22 <xsl:apply-templates mode="class-attributes" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
23 <xsl:apply-templates mode="members" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
24 </cs:class>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
25 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
26
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
27 <!-- class-name -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
28 <xsl:template match="*[@name]" mode="class-name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
29 <xsl:value-of select="@name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
30 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
31
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
32 <xsl:template match="*[@clr:name]" mode="class-name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
33 <xsl:value-of select="@clr:name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
34 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
35
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
36 <!-- class-attributes -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
37 <xsl:template match="*|text()" mode="class-attributes" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
38
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
39 <xsl:template match="sql:table" mode="class-attributes">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
40 <cs:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
41 <cs:type name="Table" namespace="Linq2Db" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
42 <cs:parameter><cs:string text="{@name}"/></cs:parameter>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
43 </cs:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
44 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
45
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
46 <!-- generate members -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
47
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
48 <xsl:template match="*|text()" mode="members" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
49
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
50 <xsl:template match="m:primaryKey | m:property | m:thisKey | clr:association" mode="members">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
51 <t:trace msg="{name()} {@name}"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
52 <xsl:apply-templates select="." mode="property"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
53 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
54
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
55 <!-- hasA and hasMany doesn't generate members itself, they delegate this work to inner members -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
56 <xsl:template match="m:hasA | m:hasMany" mode="members">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
57 <t:trace msg="{name()} {@name}" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
58 <xsl:apply-templates mode="members" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
59 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
60
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
61 <xsl:template match="m:hasA/clr:lazy" mode="members">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
62 <xsl:apply-templates select="." mode="field"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
63 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
64
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
65 <!-- member-name -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
66 <xsl:template match="*|text()|@*" mode="member-name" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
67
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
68 <xsl:template match="*[@name]" mode="member-name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
69 <xsl:value-of select="@name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
70 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
71 <xsl:template match="*[@clr:name]" mode="member-name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
72 <xsl:value-of select="@clr:name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
73 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
74
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
75 <!-- member-type -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
76 <xsl:template match="*|text()|@*" mode="member-type" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
77
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
78 <xsl:template match="*[@type]" mode="member-type">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
79 <xsl:call-template name="getClrType">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
80 <xsl:with-param name="type" select="@type" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
81 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
82 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
83
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
84 <xsl:template match="*[clr:type]" mode="member-type">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
85 <xsl:apply-templates select="clr:type" mode="clr-type" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
86 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
87
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
88 <!-- member-attributes -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
89 <xsl:template match="*|text()" mode="member-attributes"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
90
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
91 <!-- member-extension -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
92 <xsl:template match="*|text()" mode="member-extension"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
93 <xsl:template match="*" mode="member-extension">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
94 <xsl:apply-templates mode="member-extension-comments"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
95 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
96
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
97 <xsl:template match="m:hasA/* | m:hasMany/*" mode="member-extension">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
98 <xsl:variable name="comments" select="../m:description | m:description"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
99 <xsl:apply-templates select="$comments[position() = count($comments)]" mode="member-extension-comments"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
100 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
101
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
102 <!-- member-extension-comments -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
103 <xsl:template match="*|text()" mode="member-extension-comments"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
104
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
105 <xsl:template match="m:description" mode="member-extension-comments">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
106 <cs:comments>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
107 <xsl:apply-templates mode="comments" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
108 </cs:comments>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
109 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
110
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
111 <!-- property -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
112
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
113 <xsl:template match="*" mode="property">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
114 <cs:property modifiers="public">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
115 <xsl:attribute name="name"><xsl:apply-templates select="." mode="property-name"/></xsl:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
116 <xsl:apply-templates select="." mode="property-type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
117 <xsl:apply-templates select="." mode="property-attributes"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
118 <xsl:apply-templates select="." mode="property-extension" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
119 <xsl:apply-templates select="." mode="property-accessors"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
120 </cs:property>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
121 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
122
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
123 <!-- property-name -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
124 <xsl:template match="m:hasA/clr:association[not(@name|@clr:name)]" mode="property-name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
125 <!-- if the association doesn't define a name, use it from the parent node -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
126 <xsl:apply-templates select=".." mode="property-name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
127 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
128 <xsl:template match="m:hasMany/clr:association[not(@name|@clr:name)]" mode="property-name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
129 <!-- if the association doesn't define a name, use it from the parent node -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
130 <xsl:apply-templates select=".." mode="property-name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
131 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
132
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
133 <xsl:template match="*" mode="property-name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
134 <xsl:apply-templates select="." mode="member-name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
135 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
136
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
137 <!-- property-type -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
138 <xsl:template match="m:hasA[@type]/clr:association[not(clr:type)]" mode="property-type">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
139 <xsl:apply-templates select=".." mode="property-type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
140 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
141
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
142 <xsl:template match="m:hasMany[@type]/clr:association[not(clr:type)]" mode="property-type">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
143 <cs:array>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
144 <xsl:apply-templates select=".." mode="property-type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
145 </cs:array>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
146 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
147
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
148 <xsl:template match="m:hasA[@type]/m:thisKey" mode="property-type">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
149 <xsl:call-template name="getKeyType">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
150 <xsl:with-param name="type" select="../@type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
151 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
152 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
153
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
154 <xsl:template match="m:hasA[@type and boolean(@optional)]/m:thisKey" mode="property-type">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
155 <cs:nullable>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
156 <xsl:call-template name="getKeyType">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
157 <xsl:with-param name="type" select="../@type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
158 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
159 </cs:nullable>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
160 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
161
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
162 <xsl:template match="*" mode="property-type">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
163 <xsl:apply-templates select="." mode="member-type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
164 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
165
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
166 <!-- property-attributes -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
167 <xsl:template match="m:primaryKey" mode="property-attributes">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
168 <cs:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
169 <cs:type name="PrimaryKey" namespace="Linq2Db" />
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
170 </cs:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
171 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
172
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
173 <xsl:template match="m:hasA/clr:association" mode="property-attributes">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
174 <cs:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
175 <cs:type name="Association" namespace="Linq2Db"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
176 <cs:parameter name="thisKey">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
177 <cs:nameOf>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
178 <xsl:call-template name="getMember">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
179 <xsl:with-param name="memberName" select="../@name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
180 <xsl:with-param name="explicitMemberName" select="@thisKey"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
181 <xsl:with-param name="type" select="../../@name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
182 <xsl:with-param name="short" select="true()"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
183 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
184 </cs:nameOf>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
185 </cs:parameter>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
186 <cs:parameter name="otherKey">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
187 <cs:nameOf>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
188 <xsl:call-template name="getKeyMember">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
189 <xsl:with-param name="explicitMemberName" select="@thisKey"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
190 <xsl:with-param name="type" select="../@type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
191 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
192 </cs:nameOf>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
193 </cs:parameter>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
194 </cs:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
195 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
196
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
197 <xsl:template match="m:hasMany/clr:association" mode="property-attributes">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
198 <cs:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
199 <cs:type name="Association" namespace="Linq2Db"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
200 <!-- thisKey points to own primaryKey which may be inherited, using getKeyName to address such cases -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
201 <cs:parameter name="thisKey">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
202 <cs:nameOf>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
203 <xsl:call-template name="getKeyMember">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
204 <xsl:with-param name="type" select="../../@name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
205 <xsl:with-param name="explicitMemberName" select="@thisKey"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
206 <xsl:with-param name="short" select="true()"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
207 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
208 </cs:nameOf>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
209 </cs:parameter>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
210 <cs:parameter name="otherKey">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
211 <cs:nameOf>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
212 <xsl:call-template name="getMember">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
213 <xsl:with-param name="type" select="../@type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
214 <xsl:with-param name="memberName" select="../m:otherKey/@name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
215 <xsl:with-param name="explicitMemberName" select="@otherKey"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
216 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
217 </cs:nameOf>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
218 </cs:parameter>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
219 </cs:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
220 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
221
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
222 <xsl:template match="*" mode="property-attributes">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
223 <xsl:apply-templates select="." mode="member-attributes"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
224 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
225
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
226 <!-- property-extension -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
227 <xsl:template match="*" mode="property-extension">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
228 <xsl:apply-templates select="." mode="member-extension"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
229 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
230
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
231 <!-- property-accessors -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
232 <xsl:template match="*" mode="property-accessors">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
233 <cs:get/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
234 <cs:set/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
235 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
236
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
237 <xsl:template match="m:hasA[clr:lazy]/m:thisKey" mode="property-accessors">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
238 <cs:get>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
239 <xsl:text>return </xsl:text>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
240 <xsl:apply-templates select="../clr:lazy" mode="field-name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
241 <xsl:text>.Key;</xsl:text>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
242 </cs:get>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
243 <cs:set>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
244 <xsl:apply-templates select="../clr:lazy" mode="field-name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
245 <xsl:text>.Key = value;</xsl:text>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
246 </cs:set>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
247 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
248
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
249 <xsl:template match="m:hasA[clr:lazy]/clr:association" mode="property-accessors">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
250 <cs:get>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
251 <xsl:text>return </xsl:text>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
252 <xsl:apply-templates select="../clr:lazy" mode="field-name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
253 <xsl:text>.Instance;</xsl:text>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
254 </cs:get>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
255 <cs:set>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
256 <xsl:apply-templates select="../clr:lazy" mode="field-name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
257 <xsl:text>.Instance = value;</xsl:text>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
258 </cs:set>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
259 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
260
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
261 <!-- fields -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
262 <xsl:template match="*" mode="field">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
263 <cs:field>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
264 <xsl:attribute name="name"><xsl:apply-templates select="." mode="field-name"/></xsl:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
265 <xsl:apply-templates select="." mode="field-type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
266 <xsl:apply-templates select="." mode="field-initializer"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
267 </cs:field>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
268 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
269
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
270 <!-- field-name -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
271 <xsl:template match="m:hasA/clr:lazy" mode="field-name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
272 <xsl:text>m_lazy</xsl:text>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
273 <xsl:apply-templates select=".." mode="property-name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
274 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
275
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
276 <xsl:template match="clr:lazy[@field]" mode="field-name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
277 <xsl:value-of select="@field"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
278 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
279
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
280 <xsl:template match="*" mode="field-name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
281 <xsl:apply-templates select="." mode="member-name"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
282 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
283
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
284 <!-- field-type -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
285 <xsl:template match="m:hasA[@optional='true']/clr:lazy" mode="field-type">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
286 <cs:type name="NullableReference" namespace="Pallada.Data">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
287 <xsl:call-template name="getKeyType">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
288 <xsl:with-param name="type" select="../@type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
289 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
290 <xsl:apply-templates select=".." mode="property-type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
291 </cs:type>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
292 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
293 <xsl:template match="m:hasA[@optional!='true']/clr:lazy" mode="field-type">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
294 <cs:type name="Reference" namespace="Pallada.Data">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
295 <xsl:apply-templates select="../m:thisKey" mode="property-type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
296 <xsl:apply-templates select=".." mode="property-type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
297 </cs:type>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
298 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
299
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
300 <xsl:template match="*" mode="field-type">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
301 <xsl:apply-templates select="." mode="member-type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
302 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
303 <!-- field-initializer -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
304 <xsl:template match="*|text()" mode="field-initializer"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
305
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
306 <xsl:template name="getKeyClrMemberName">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
307 <xsl:param name="explicitMemberName" select="''"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
308 <xsl:param name="type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
309 <xsl:param name="short" select="false()"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
310 <cs:member>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
311 <xsl:choose>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
312 <xsl:when test="$explicitMemberName">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
313 <xsl:attribute name="name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
314 <xsl:value-of select="$explicitMemberName"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
315 </xsl:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
316 </xsl:when>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
317 <xsl:otherwise>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
318 <xsl:attribute name="name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
319 <xsl:call-template name="getKeyName">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
320 <xsl:with-param name="type" select="$type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
321 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
322 </xsl:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
323 </xsl:otherwise>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
324 </xsl:choose>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
325 <xsl:if test="not($short)">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
326 <xsl:call-template name="getClrType">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
327 <xsl:with-param name="type" select="$type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
328 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
329 </xsl:if>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
330 </cs:member>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
331 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
332
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
333 <xsl:template name="getClrMemberName">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
334 <xsl:param name="memberName"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
335 <xsl:param name="type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
336 <xsl:param name="explicitMemberName" select="''"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
337 <xsl:param name="short" select="false()"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
338 <cs:member>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
339 <xsl:choose>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
340 <xsl:when test="$explicitMemberName">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
341 <xsl:attribute name="name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
342 <xsl:value-of select="$explicitMemberName"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
343 </xsl:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
344 </xsl:when>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
345 <xsl:otherwise>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
346 <xsl:attribute name="name">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
347 <xsl:call-template name="getClrPropertyName">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
348 <xsl:with-param name="member" select="$memberName"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
349 <xsl:with-param name="type" select="$type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
350 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
351 </xsl:attribute>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
352 </xsl:otherwise>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
353 </xsl:choose>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
354 <xsl:if test="not($short)">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
355 <xsl:call-template name="getClrType">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
356 <xsl:with-param name="type" select="$type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
357 </xsl:call-template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
358 </xsl:if>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
359 </cs:member>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
360 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
361
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
362 <!-- lookups for the specified member for the specified type
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
363 and returns the CLR property name -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
364 <xsl:template name="getClrPropertyName">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
365 <xsl:param name="type"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
366 <xsl:param name="member"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
367 <!-- prevents cyclic references -->
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
368 <xsl:param name="seen" select="/.."/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
369 <xsl:for-each select="$module">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
370 <xsl:apply-templates select="key('type', $type)"
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
371 mode="member-lookup">
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
372 <xsl:with-param name="member" select="$member"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
373 <xsl:with-param name="seen" select="$seen"/>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
374 </xsl:apply-templates>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
375 </xsl:for-each>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
376 </xsl:template>
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
377
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
378
035de8b7b18e Temporary commit, refactoring, added readme
cin
parents:
diff changeset
379 </xsl:stylesheet>