/[volute]/trunk/projects/theory/snapdm/res/intermediate2ddl.xsl
ViewVC logotype

Diff of /trunk/projects/theory/snapdm/res/intermediate2ddl.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 439 by gerard.lemson, Sat May 10 15:36:43 2008 UTC revision 440 by gerard.lemson, Sun May 11 06:09:48 2008 UTC
# Line 29  Line 29 
29        
30    
31    <xsl:import href="common-ddl.xsl"/>    <xsl:import href="common-ddl.xsl"/>
32      <xsl:import href="utype.xsl"/>
33    
34  <!-- possible values: postgres, mssqlserver -->    <!-- possible values: postgres, mssqlserver -->  
35    <xsl:param name="vendor" select="'mssqlserver'"/>    <xsl:param name="vendor" select="'mssqlserver'"/>
# Line 68  Line 69 
69      <xsl:variable name="processed" select="$nodes|$finished"/>      <xsl:variable name="processed" select="$nodes|$finished"/>
70    
71      <xsl:for-each select="$nodes">      <xsl:for-each select="$nodes">
72        <node><xsl:copy-of select="."/></node>        <node><xsl:copy-of select="."/><utype><xsl:apply-templates select="." mode="utype"/></utype></node>
73      </xsl:for-each>      </xsl:for-each>
74            
75      <xsl:if test="count(//objectType)>count($processed)">      <xsl:if test="count(//objectType)>count($processed)">
# Line 123  Line 124 
124      <xsl:message >Opening file <xsl:value-of select="$file"/></xsl:message>      <xsl:message >Opening file <xsl:value-of select="$file"/></xsl:message>
125      <xsl:result-document href="{$file}">      <xsl:result-document href="{$file}">
126        <xsl:value-of select="$header"/>&cr;&cr;        <xsl:value-of select="$header"/>&cr;&cr;
127    
128        <xsl:for-each select="exsl:node-set($sortedObjectTypes)/node/objectType">          <xsl:for-each select="exsl:node-set($sortedObjectTypes)/node/objectType">  
129          <xsl:sort select="position()" data-type="number" order="ascending"/>          <xsl:sort select="position()" data-type="number" order="ascending"/>
   
130                
131          <xsl:text>------------------------------------------------------</xsl:text>&cr;          <xsl:text>------------------------------------------------------</xsl:text>&cr;
132          <xsl:text>-- Table representation of the objectType </xsl:text><xsl:value-of select="name"/>&cr;          <xsl:text>-- Table representation of the objectType </xsl:text><xsl:value-of select="name"/>&cr;
# Line 218  Line 218 
218    
219    
220    
221        <!-- View definition for a given objectType.
222      Returns all columns for the given type, including inherited ones.
223      Uses view for base class, if available. -->
224    <xsl:template match="objectType" mode="createView">    <xsl:template match="objectType" mode="createView">
     <!-- generate a single table for the whole object hierarchy below the matched objectType -->  
225      <xsl:variable name="tableName">      <xsl:variable name="tableName">
226        <xsl:apply-templates select="." mode="tableName"/>        <xsl:apply-templates select="." mode="tableName"/>
227      </xsl:variable>      </xsl:variable>

Legend:
Removed from v.439  
changed lines
  Added in v.440

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26