Changeset 3706 in main for trunk/src/main/webapps/ibisph-view/xslt/html/user/status/Page.xslt
- Timestamp:
- 04/11/12 00:20:19 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/webapps/ibisph-view/xslt/html/user/status/Page.xslt
r3699 r3706 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 HTML 25 CONTENT. For this to work, an overriden callback type template 26 is used. This template is passed the section's ID. The template 27 must then determine if the section should be included. The template 28 determines this by XML, the passed in ID, and any other parameters 29 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 23 44 <xsl:template name="HTMLContent.includeConditionalSection" 24 45 ibis:doc="Callback type template that controls if the section should be … … 31 52 > 32 53 <xsl:param name="sectionID"/> 33 <xsl:value-of select="boolean($UserProfile/STATUS_CODE = $sectionID)"/> 34 <xsl:message select="$UserProfile"/> 54 <xsl:value-of select="boolean($UserProfile/USER/STATUS_CODE = $sectionID)"/> 35 55 </xsl:template> 36 56
Note: See TracChangeset
for help on using the changeset viewer.