Changeset 6772
- Timestamp:
- 10/05/06 18:53:58 (5 years ago)
- Location:
- trunk/Wsp_Modeling
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/es/content/organisation/compositionXhtmlTransf/xml.xed.xml
r6754 r6772 188 188 <atts> 189 189 <se:ref se:refid="atts_Class"/> 190 <attribute se:name="position" se:id="WCollapsableBlock_position" se:bind="attribute"> 191 <choiceInput> 192 <ciItem label="top"/> 193 <ciItem label="bottom"/> 194 </choiceInput> 195 </attribute> 190 196 <attribute se:name="defaultClosed" se:id="sm:WCollapsableBlock_defaultClosed" se:bind="attribute"> 191 197 <choiceInput> … … 197 203 <childs> 198 204 <se:ref se:refid="sm:label_Ctx"/> 205 <se:ref se:refid="sm:labelTitle_Ctx"/> 199 206 <se:ref se:refid="sm:content_Ctx"/> 200 207 <se:ref se:refid="sm:defaultStyle"/> … … 203 210 <element se:id="sm:WCaptionBlock_Ctx" se:name="sm:WCaptionBlock" se:bind="element"> 204 211 <atts> 205 <attribute se:name="position" se:bind="attribute"> 212 <se:ref se:refid="atts_Class"/> 213 <attribute se:name="position" se:id="WCaptionBlock_position" se:bind="attribute"> 206 214 <choiceInput> 207 215 <ciItem label="bottom"/> … … 209 217 </choiceInput> 210 218 </attribute> 211 <se:ref se:refid="atts_Class"/>212 219 </atts> 213 220 <childs> … … 275 282 </childs> 276 283 </element> 277 <element se:name="sm:labelTitle" se: bind="element" se:card="?" tooltipTag="&common.widgets.wLink.labelTitle;">284 <element se:name="sm:labelTitle" se:id="sm:labelTitle_Ctx" se:bind="element" se:card="?" tooltipTag="&common.widgets.wLink.labelTitle;"> 278 285 <childs> 279 286 <se:choice se:card="*" se:show="ifExist"> … … 328 335 <childs> 329 336 <se:ref se:name="sm:label" se:refid="sm:label_Ctx"/> 337 <se:ref se:refid="sm:labelTitle_Ctx"/> 330 338 <element se:name="sm:tooltip" se:bind="element" forcefilled="true"> 331 339 <atts> … … 542 550 <atts> 543 551 <se:ref se:refid="atts_Class"/> 552 <se:ref se:refid="WCollapsableBlock_position"/> 544 553 <se:ref se:refid="sm:WCollapsableBlock_defaultClosed"/> 545 554 </atts> 546 555 <childs> 547 556 <se:ref se:refid="sm:label_Fix"/> 557 <se:ref se:refid="sm:labelTitle_Fix"/> 548 558 <se:ref se:refid="sm:content_Fix"/> 549 559 <se:ref se:refid="sm:defaultStyle" insert="true"/> … … 552 562 <element se:name="sm:WCaptionBlock" se:bind="element" se:id="sm:WCaptionBlock_Fix"> 553 563 <atts> 554 <attribute se:name="position" se:bind="attribute"> 555 <choiceInput> 556 <ciItem label="bottom"/> 557 <ciItem label="top"/> 558 </choiceInput> 559 </attribute> 560 <se:ref se:refid="atts_Class"/> 564 <se:ref se:refid="atts_Class"/> 565 <se:ref se:refid="WCaptionBlock_position"/> 561 566 </atts> 562 567 <childs> … … 598 603 </childs> 599 604 </element> 600 <element se:name="sm:WLink" se:bind="element" se:id="sm:WLink_Fix" >601 <atts> 602 <se:ref se:refid="atts_Class"/> 603 </atts> 604 <childs> 605 <element se:name="sm:label" se:bind="element" se:id="sm:label_Fix" >605 <element se:name="sm:WLink" se:bind="element" se:id="sm:WLink_Fix" tooltipTag="&common.widgets.wLink;"> 606 <atts> 607 <se:ref se:refid="atts_Class"/> 608 </atts> 609 <childs> 610 <element se:name="sm:label" se:bind="element" se:id="sm:label_Fix" tooltipTag="&common.widgets.wLink.label;"> 606 611 <childs> 607 612 <se:choice se:card="*"> … … 617 622 </childs> 618 623 </element> 619 <element se:name="sm:labelTitle" se: bind="element" se:card="?" tooltipTag="&common.widgets.wLink.labelTitle;">624 <element se:name="sm:labelTitle" se:id="sm:labelTitle_Fix" se:bind="element" se:card="?" tooltipTag="&common.widgets.wLink.labelTitle;"> 620 625 <childs> 621 626 <se:choice se:card="*" se:show="ifExist"> … … 650 655 <childs> 651 656 <se:ref se:name="sm:label" se:refid="sm:label_Fix"/> 657 <se:ref se:refid="sm:labelTitle_Fix"/> 652 658 <element se:name="sm:tooltip" se:bind="element" forcefilled="true"> 653 659 <atts> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf/widgets.xml.xsl
r6754 r6772 106 106 <xsl0:variable name="vClassOpen" select="concat(si(@internalClass,concat($vPrefixClass,@internalClass,'_open')),si(@commonClass,concat(' ',@commonClass,'_open')))"/> 107 107 <xsl0:variable name="vClassClosed" select="concat(si(@internalClass,concat($vPrefixClass,@internalClass,'_closed')),si(@commonClass,concat(' ',@commonClass,'_closed')))"/> 108 <xsl0:variable name="vContentPosition" select="si(@position='bottom','firstChild','lastChild')"/> 108 109 <div> 109 110 <xsl0:call-template name="classAtt"/> 110 111 <xsl0:call-template name="crossRefEntries"/> 111 <a style="display:block;" href="javascript:void(0);" class="{si(@defaultClosed='true',$vClassClosed,$vClassOpen)}" onclick="this.parentNode.lastChild.style.display=this.parentNode.lastChild.style.display=='none'?'block':'none';this.className=this.parentNode.lastChild.style.display=='none'?'{$vClassClosed}':'{$vClassOpen}';"> 112 <xsl0:if test="@position='bottom'"> 113 <div style="display:{si(@defaultClosed='true','none','block')};"> 114 <xsl0:call-template name="classAtt"> 115 <xsl0:with-param name="pSuffix" select="'co'"/> 116 </xsl0:call-template> 117 <xsl0:apply-templates select="sm:content/*" mode="content"/> 118 </div> 119 </xsl0:if> 120 <a style="display:block;" href="javascript:void(0);" class="{si(@defaultClosed='true',$vClassClosed,$vClassOpen)}" onclick="this.parentNode.{$vContentPosition}.style.display=this.parentNode.{$vContentPosition}.style.display=='none'?'block':'none';this.className=this.parentNode.{$vContentPosition}.style.display=='none'?'{$vClassClosed}':'{$vClassOpen}';"> 121 <xsl0:if test="count(sm:labelTitle) != 0"> 122 <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/*" mode="content"/></addAttribute> 123 </xsl0:if> 112 124 <xsl0:choose> 113 125 <xsl0:when test="count(sm:label/*)!=0"> … … 127 139 </xsl0:choose> 128 140 </a> 129 <div style="display:{si(@defaultClosed='true','none','block')};"> 130 <xsl0:call-template name="classAtt"> 131 <xsl0:with-param name="pSuffix" select="'co'"/> 132 </xsl0:call-template> 133 <xsl0:apply-templates select="sm:content/*" mode="content"/> 134 </div></div> 135 </xsl0:template> 136 <xsl0:template match="sm:WCollapsableBlock/sm:label/sm:title" mode="content"> 137 <xsl0:apply-templates select="." mode="contentTitleIn"/> 138 </xsl0:template> 139 <xsl0:template match="sm:WCollapsableBlock/sm:label/sm:fixedString" mode="content"> 141 <xsl0:if test="count(@position)=0 or @position='top'"> 142 <div style="display:{si(@defaultClosed='true','none','block')};"> 143 <xsl0:call-template name="classAtt"> 144 <xsl0:with-param name="pSuffix" select="'co'"/> 145 </xsl0:call-template> 146 <xsl0:apply-templates select="sm:content/*" mode="content"/> 147 </div> 148 </xsl0:if> 149 </div> 150 </xsl0:template> 151 <xsl0:template match="sm:WCollapsableBlock/sm:label/sm:title|sm:WCollapsableBlock/sm:labelTitle/sm:title" mode="content"> 152 <xsl0:apply-templates select="." mode="contentTitleIn"/> 153 </xsl0:template> 154 <xsl0:template match="sm:WCollapsableBlock/sm:label/sm:fixedString|sm:WCollapsableBlock/sm:labelTitle/sm:fixedString" mode="content"> 140 155 <xsl0:value-of select="@value"/> 141 156 </xsl0:template> … … 250 265 </xsl0:call-template> 251 266 <xsl0:call-template name="crossRefEntries"/> 267 <xsl0:if test="count(sm:labelTitle) != 0"> 268 <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/*" mode="content"/></addAttribute> 269 </xsl0:if> 252 270 <scTooltip> 253 271 <xsl0:attribute name="trigger"><xsl0:value-of select="si(sm:tooltip/@trigger, sm:tooltip/@trigger, 'onmouseover')"/></xsl0:attribute> … … 262 280 </xsl0:choose></span> 263 281 </xsl0:template> 264 <xsl0:template match="sm:WTooltip/sm:tooltip/sm:ttTitle/sm:fixedString |sm:WTooltip/sm:label/sm:fixedString" mode="content">282 <xsl0:template match="sm:WTooltip/sm:tooltip/sm:ttTitle/sm:fixedString | sm:WTooltip/sm:label/sm:fixedString | sm:WTooltip/sm:labelTitle/sm:fixedString" mode="content"> 265 283 <xsl0:value-of select="@value"/> 266 284 </xsl0:template> 267 <xsl0:template match="sm:WTooltip/sm:tooltip/sm:ttTitle/sm:title |sm:WTooltip/sm:label/sm:title" mode="content">285 <xsl0:template match="sm:WTooltip/sm:tooltip/sm:ttTitle/sm:title | sm:WTooltip/sm:label/sm:title | sm:WTooltip/sm:labelTitle/sm:title" mode="content"> 268 286 <span><xsl0:apply-templates select="." mode="contentTitleIn"/></span> 269 287 </xsl0:template>
Note: See TracChangeset
for help on using the changeset viewer.