diff xslt/generator.csharp.xsl @ 4:d240adc2ac70

sync
author cin
date Thu, 01 Mar 2018 16:53:23 +0300
parents 437127ab6a12
children 6f67d3a6b950
line wrap: on
line diff
--- a/xslt/generator.csharp.xsl	Wed Feb 28 02:10:29 2018 +0300
+++ b/xslt/generator.csharp.xsl	Thu Mar 01 16:53:23 2018 +0300
@@ -26,12 +26,15 @@
 	</xsl:template>
 	
 	<xsl:template match="m:entity" mode="entity">
+		<xsl:variable name="members">
+			<xsl:apply-templates mode="fiter-members"/>
+		</xsl:variable>
 		<cs:class modifiers="partial">
 			<xsl:attribute name="name">
 				<xsl:apply-templates select="." mode="class-name"/>
 			</xsl:attribute>
 			<xsl:apply-templates mode="class-attributes" />
-			<xsl:apply-templates mode="members" />
+			<xsl:apply-templates select="exsl:node-set($members)" mode="members" />
 		</cs:class>
 	</xsl:template>
 	
@@ -63,6 +66,12 @@
 		<xsl:apply-templates select="." mode="property"/>
 	</xsl:template>
 	
+	<xsl:template match="m:thisKey" mode="members">
+		<xsl:variable name="properties">
+			
+		</xsl:variable>
+	</xsl:template>
+	
 	<!-- hasA and hasMany doesn't generate members itself, they delegate this work to inner members -->
 	<xsl:template match="m:hasA | m:hasMany" mode="members">
 		<t:trace msg="{name()} {@name}" />