Changeset 3710 in main for trunk/src/main/webapps/ibisph-view/xslt/html/user/status/Page.xslt
- Timestamp:
- 04/12/12 01:58:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/webapps/ibisph-view/xslt/html/user/status/Page.xslt
r3706 r3710 21 21 22 22 23 <xsl:template match="HTML_CONTENT/CONTENT//ibis:ContiditionalSection" mode="ibis.copy"24 ibis:doc="Provides ability include/exclude certain sections of HTML25 CONTENT. For this to work, an overriden callback type template26 is used. This template is passed the section's ID. The template27 must then determine if the section should be included. The template28 determines this by XML, the passed in ID, and any other parameters29 that have been passed into the transformer process.30 "31 >32 <xsl:param name="test">33 <xsl:call-template name="HTMLContent.includeConditionalSection">34 <xsl:with-param name="sectionID" select="@id"/>35 </xsl:call-template>36 </xsl:param>37 USER PROFILE: <xsl:copy-of select="$UserProfile/USER/STATUS_CODE"/>, ID: <xsl:value-of select="@id"/><br/>38 39 <xsl:if test="ibis:isFirstLetter_T_or_Y_or_X($test)">40 <xsl:apply-templates select="(text() | *)" mode="ibis.copy"/>41 </xsl:if>42 </xsl:template>43 44 23 <xsl:template name="HTMLContent.includeConditionalSection" 45 24 ibis:doc="Callback type template that controls if the section should be … … 52 31 > 53 32 <xsl:param name="sectionID"/> 54 <xsl:value-of select="boolean($UserProfile/USER/STATUS _CODE= $sectionID)"/>33 <xsl:value-of select="boolean($UserProfile/USER/STATUS = $sectionID)"/> 55 34 </xsl:template> 56 35
Note: See TracChangeset
for help on using the changeset viewer.