Changeset 19636
- Timestamp:
- 02/03/12 11:01:12 (4 months ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7.x/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf/calledTransformersInc.xsl
r13370 r19636 18 18 * sylvain.spinelli@kelis.fr 19 19 * 20 * Portions created by the Initial Developer are Copyright (C) 2005-20 0920 * Portions created by the Initial Developer are Copyright (C) 2005-2012 21 21 * the Initial Developer. All Rights Reserved. 22 22 * … … 90 90 </xsl:template> 91 91 92 <xsl:template match="sm:lookForExistingSubModelPage" mode="in"> 93 <xsl:variable name="vAxis" select="@axis"/> 94 <xsl:variable name="vView">navigation</xsl:variable> 95 <xsl:variable name="vCodes" select="ancestor::sm:for/@codes"/> 96 <xsl:choose> 97 <xsl:when test="$vCodes = '*'"> 98 <xsl:for-each select="$vStructureModel//sm:part"> 99 <xsl:for-each select="sm:allowedModel"> 100 <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="{$vView}"/> 101 </xsl:for-each> 102 </xsl:for-each> 103 </xsl:when> 104 <xsl:otherwise> 105 <xsl:for-each select="xalan:tokenize($vCodes, ' ')"> 106 <xsl:variable name="vDefModel" select="$vStructureModel//sm:part[@code=current()]"/> 107 <xsl:if test="$vDefModel"> 108 <xsl:for-each select="$vDefModel/sm:allowedModel"> 109 <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="{$vView}"/> 110 </xsl:for-each> 111 </xsl:if> 112 </xsl:for-each> 113 </xsl:otherwise> 114 </xsl:choose> 115 <xsl:apply-templates mode="in"/> 116 </xsl:template> 117 118 <xsl:template match="sm:ifNoPage" mode="in"> 119 <xsl:apply-templates mode="in"/> 120 </xsl:template> 121 92 122 <xsl:template match="sm:callModel" mode="in"> 93 123 <xsl:apply-templates mode="in"> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs/sm_compositionXhtmlTransf/calledTransformersInc.xsl
r16906 r19636 18 18 * sylvain.spinelli@kelis.fr 19 19 * 20 * Portions created by the Initial Developer are Copyright (C) 2005-20 0920 * Portions created by the Initial Developer are Copyright (C) 2005-2012 21 21 * the Initial Developer. All Rights Reserved. 22 22 * … … 91 91 </xsl:template> 92 92 93 <xsl:template match="sm:lookForExistingSubModelPage" mode="in"> 94 <xsl:variable name="vAxis" select="@axis"/> 95 <xsl:variable name="vView">navigation</xsl:variable> 96 <xsl:variable name="vCodes" select="ancestor::sm:for/@codes"/> 97 <xsl:choose> 98 <xsl:when test="$vCodes = '*'"> 99 <xsl:for-each select="$vStructureModel//sm:part"> 100 <xsl:for-each select="sm:allowedModel"> 101 <call model="{@sc:refUri}" axis="{$vAxis}" view="{$vView}"/> 102 </xsl:for-each> 103 </xsl:for-each> 104 </xsl:when> 105 <xsl:otherwise> 106 <xsl:for-each select="xalan:tokenize($vCodes, ' ')"> 107 <xsl:variable name="vDefModel" select="$vStructureModel//sm:part[@code=current()]"/> 108 <xsl:if test="$vDefModel"> 109 <xsl:for-each select="$vDefModel/sm:allowedModel"> 110 <call model="{@sc:refUri}" axis="{$vAxis}" view="{$vView}"/> 111 </xsl:for-each> 112 </xsl:if> 113 </xsl:for-each> 114 </xsl:otherwise> 115 </xsl:choose> 116 <xsl:apply-templates mode="in"/> 117 </xsl:template> 118 119 <xsl:template match="sm:ifNoPage" mode="in"> 120 <xsl:apply-templates mode="in"/> 121 </xsl:template> 122 93 123 <xsl:template match="sm:callModel" mode="in"> 94 124 <xsl:apply-templates mode="in">
Note: See TracChangeset
for help on using the changeset viewer.