Changeset 9395 for trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_navUiWidget/navOutlineDef.xsl
- Timestamp:
- 07/25/07 11:08:55 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_navUiWidget/navOutlineDef.xsl
r9394 r9395 46 46 exclude-result-prefixes="sm sc" 47 47 version="1.0"> 48 49 <!-- <xsl:import href="bs:../sm_outlineUiWidget/outlineDef.xsl"/> --> 50 48 51 <xsl:output method="xml" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/> 49 52 50 <xsl:param name="vComp"/> 53 <xsl:param name="vDialog"/> 54 <xsl:param name="vAgent"/> 51 55 52 56 <xsl:template match="sm:navUiWidget"> 53 57 <navOutlineDef> 54 <xsl:apply-templates select="sm:selectPage/*"/> 58 <scope> 59 <xsl:apply-templates select="sm:scope/*"/> 60 </scope> 61 <steps> 62 <xsl:apply-templates select="sm:selectPage/*"/> 63 </steps> 55 64 </navOutlineDef> 56 65 </xsl:template> … … 111 120 <excludeCompType code="{getIdFromPath(@sc:refUri)}{getAxisSuffix(@axis)}"/> 112 121 </xsl:template> 122 123 <!-- ########## SCOPE ###########"" --> 124 <xsl:template match="sm:all"> 125 <startingPoint dir="down" offset="{si(not(@startAtLevel), '0', @startAtLevel)}" include="{si(not(@startAtLevel) or @startAtLevel='0', 'y', 'n')}"/> 126 <uncleFrom dir="down" offset="0"/> 127 <uncleTo dir="up" offset="0"/> 128 <uncleDesc depth="noLimit"/> 129 <currentDesc depth="noLimit"/> 130 </xsl:template> 131 132 <xsl:template match="sm:directChildren"> 133 <startingPoint dir="up" offset="0" include="n"/> 134 <currentDesc depth="1" depthFrom="current"/> 135 </xsl:template> 136 137 <xsl:template match="sm:minimalist"> 138 <startingPoint dir="down" offset="{si(not(@startAtLevel), '0', @startAtLevel)}" include="{si(not(@startAtLevel) or @startAtLevel='0', 'y', 'n')}"/> 139 <uncleFrom dir="down" offset="0"/> 140 <uncleTo dir="up" offset="0"/> 141 <currentDesc depth="1" depthFrom="current"/> 142 </xsl:template> 143 144 <xsl:template match="sm:stack"> 145 <startingPoint dir="down" offset="0"/> 146 </xsl:template> 147 148 <xsl:template match="sm:onlyOneLevel"> 149 <startingPoint dir="down" offset="{si(not(@level), '0', @level)}" include="n"/> 150 <endingPoint depth="1" depthFrom="startingPoint"/> 151 <uncleFrom dir="down" offset="0"/> 152 <uncleTo dir="down" offset="1"/> 153 <currentDesc depth="1" depthFrom="startingPoint"/> 154 </xsl:template> 155 156 <!-- customized scope --> 157 <xsl:template match="sm:customized"> 158 <xsl:apply-templates/> 159 </xsl:template> 160 <xsl:template match="sm:scopeStartingPoint"> 161 <xsl:apply-templates/> 162 </xsl:template> 163 <xsl:template match="sm:fromAbsoluteTop"> 164 <startingPoint dir="down" offset="{si(not(@descendantOffset), 'max', @descendantOffset)}" include="{si(@includeInScope='no', 'n', 'y')}"> 165 <xsl:apply-templates/> 166 </startingPoint> 167 </xsl:template> 168 <xsl:template match="sm:fromCurrent"> 169 <startingPoint dir="up" offset="{si(not(@ancestorOffset), 'max', @ancestorOffset)}" include="{si(@includeInScope='no', 'n', 'y')}"> 170 <xsl:apply-templates/> 171 </startingPoint> 172 </xsl:template> 173 174 <xsl:template match="sm:stopAtModel"> 175 <stopCompType code="{resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/codeModel'))}{getAxisSuffix(@axis)}" include="{si(@includeInScope='no', 'n', 'y')}"/> 176 </xsl:template> 177 178 179 <xsl:template match="sm:ancestorEndingPoint"> 180 <endingPoint depth="{si(sm:depthLimit/@depth, sm:depthLimit/@depth, 'noLimit')}" depthFrom="{si(sm:depthLimit/@from='current', 'current', 'startingPoint')}"> 181 <xsl:apply-templates/> 182 </endingPoint> 183 </xsl:template> 184 185 <xsl:template match="sm:currentAndAncestorSiblings"> 186 <xsl:apply-templates/> 187 </xsl:template> 188 <xsl:template match="sm:siblingsStartingPoint"> 189 <uncleFrom dir="{si(@direction='currentToScopeStartingPoint', 'up', 'down')}" offset="{si(not(@offset), 'max', @offset)}"> 190 <xsl:apply-templates/> 191 </uncleFrom> 192 </xsl:template> 193 <xsl:template match="sm:siblingsEndingPoint"> 194 <uncleTo dir="{si(@direction='currentToScopeStartingPoint', 'up', 'down')}" offset="{si(not(@offset), 'max', @offset)}"> 195 <xsl:apply-templates/> 196 </uncleTo> 197 </xsl:template> 198 <xsl:template match="sm:siblingDescendants"> 199 <uncleDesc depth="{si(sm:depthLimit/@depth, sm:depthLimit/@depth, 'noLimit')}" depthFrom="{si(sm:depthLimit/@from='current', 'current', 'startingPoint')}"> 200 <xsl:apply-templates/> 201 </uncleDesc> 202 </xsl:template> 203 <xsl:template match="sm:currentDescendants"> 204 <currentDesc depth="{si(sm:depthLimit/@depth, sm:depthLimit/@depth, 'noLimit')}" depthFrom="{si(sm:depthLimit/@from='current', 'current', 'startingPoint')}"> 205 <xsl:apply-templates/> 206 </currentDesc> 207 </xsl:template> 208 <xsl:template match="sm:depthLimit"/> 209 210 113 211 <xsl:template match="*|text()|@*"/> 114 212 </xsl:stylesheet>
Note: See TracChangeset
for help on using the changeset viewer.