Changeset 7520
- Timestamp:
- 27.11.2006 18:46:24 (3 years ago)
- Location:
- trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss
- Files:
-
- 2 modified
-
sm_dataFormXhtmlTransf.xml (modified) (1 diff)
-
sm_dataFormXhtmlTransf/calledTransformersInc.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf.xml
r6475 r7520 246 246 247 247 <xsl:template match="sm:dataFormXhtmlTransf"> 248 <xsl:apply-templates mode="mainView"/> 248 249 <view code="title"/> 249 <view code="xhtmlContent"><xsl:apply-templates mode="in"/></view>250 250 </xsl:template> 251 252 <xsl:template match="sm:content" mode="mainView"> 253 <view code="xhtmlContent"> 254 <xsl:apply-templates mode="in"/> 255 </view> 256 </xsl:template> 257 <xsl:template match="sm:navigation" mode="mainView"> 258 <view code="navigation"> 259 <xsl:apply-templates mode="in"/> 260 </view> 261 </xsl:template> 262 251 263 252 264 </xsl:stylesheet> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf/calledTransformersInc.xsl
r5459 r7520 68 68 69 69 <xsl:template match="sm:fieldValueOtherType" mode="in"> 70 <xsl:variable name="vView" select="si(local-name(..)!='link', 'xhtmlContent', 'navigation')"/> 70 <xsl:variable name="vView"> 71 <xsl:choose> 72 <xsl:when test="local-name(..)!='link' and ( count(ancestor::sm:content) > 0)">xhtmlContent</xsl:when> 73 <xsl:otherwise>navigation</xsl:otherwise> 74 </xsl:choose> 75 </xsl:variable> 76 <!-- <xsl:variable name="vView" select="si(local-name(..)!='link', 'xhtmlContent', 'navigation')"/> --> 71 77 <xsl:variable name="vAxis" select="@axis"/> 72 <xsl:variable name="vFor" select="ancestor::sm:forField"/> 73 <xsl:for-each select="xalan:tokenize($vFor/@codes, ' ')"> 74 <xsl:variable name="vDefModel" select="$vStructureModel//sm:field[@code=current()]/sm:otherType"/> 75 <xsl:if test="count($vDefModel) > 0"> 76 <call model="{getIdFromPath($vDefModel/@sc:refUri)}" axis="{$vAxis}" view="{$vView}"/> 77 </xsl:if> 78 </xsl:for-each> 78 <xsl:choose> 79 <xsl:when test="count(ancestor::sm:content) > 0"> 80 <xsl:variable name="vFor" select="ancestor::sm:forField"/> 81 <xsl:for-each select="xalan:tokenize($vFor/@codes, ' ')"> 82 <xsl:variable name="vDefModel" select="$vStructureModel//sm:field[@code=current()]/sm:otherType"/> 83 <xsl:if test="count($vDefModel) > 0"> 84 <call model="{getIdFromPath($vDefModel/@sc:refUri)}" axis="{$vAxis}" view="{$vView}"/> 85 </xsl:if> 86 </xsl:for-each> 87 </xsl:when> 88 <xsl:otherwise> 89 <xsl:variable name="vDefModel" select="$vStructureModel//sm:field[@code=@field]/sm:otherType"/> 90 <xsl:if test="count($vDefModel) > 0"> 91 <call model="{getIdFromPath($vDefModel/@sc:refUri)}" axis="{$vAxis}" view="{$vView}"/> 92 </xsl:if> 93 </xsl:otherwise> 94 </xsl:choose> 79 95 </xsl:template> 80 96 81 97 <xsl:template match="sm:callRefModel" mode="in"> 82 <xsl:variable name="vView" select="si(local-name(../..)!='link', 'xhtmlContent', 'navigation')"/> 98 <xsl:variable name="vView"> 99 <xsl:choose> 100 <xsl:when test="local-name(../..)!='link' and ( count(ancestor::sm:content) > 0)">xhtmlContent</xsl:when> 101 <xsl:otherwise>navigation</xsl:otherwise> 102 </xsl:choose> 103 </xsl:variable> 104 <!-- <xsl:variable name="vView" select="si(local-name(../..)!='link', 'xhtmlContent', 'navigation')"/> --> 83 105 <xsl:variable name="vAxis" select="@axis"/> 84 <xsl:variable name="vFor" select="ancestor::sm:forField"/> 85 <xsl:for-each select="xalan:tokenize($vFor/@codes, ' ')"> 86 <xsl:variable name="vDefModel" select="$vStructureModel//sm:field[@code=current()]/sm:refItem"/> 87 <xsl:if test="count($vDefModel) > 0"> 88 <xsl:for-each select="$vDefModel/sm:allowedModel"> 89 <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="{$vView}"/> 106 <xsl:choose> 107 <xsl:when test="count(ancestor::sm:content) > 0"> 108 <xsl:variable name="vFor" select="ancestor::sm:forField"/> 109 <xsl:for-each select="xalan:tokenize($vFor/@codes, ' ')"> 110 <xsl:variable name="vDefModel" select="$vStructureModel//sm:field[@code=current()]/sm:refItem"/> 111 <xsl:if test="count($vDefModel) > 0"> 112 <xsl:for-each select="$vDefModel/sm:allowedModel"> 113 <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="{$vView}"/> 114 </xsl:for-each> 115 </xsl:if> 90 116 </xsl:for-each> 91 </xsl:if> 92 </xsl:for-each> 117 </xsl:when> 118 <xsl:otherwise> 119 <xsl:variable name="vDefModel" select="$vStructureModel//sm:field[@code=@field]/sm:refItem"/> 120 <xsl:if test="count($vDefModel) > 0"> 121 <xsl:for-each select="$vDefModel/sm:allowedModel"> 122 <call model="{getIdFromPath(@sc:refUri)}" axis="{$vAxis}" view="{$vView}"/> 123 </xsl:for-each> 124 </xsl:if> 125 </xsl:otherwise> 126 </xsl:choose> 93 127 </xsl:template> 94 128