Ignore:
Timestamp:
04/11/12 00:20:19 (10 years ago)
Author:
Garth Braithwaite
Message:

java and view - user profile verification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main/webapps/ibisph-view/xslt/html/user/status/Page.xslt

    r3699 r3706  
    2121
    2222
     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>
     37USER 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
    2344        <xsl:template name="HTMLContent.includeConditionalSection"
    2445                ibis:doc="Callback type template that controls if the section should be
     
    3152        >
    3253                <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)"/>
    3555        </xsl:template>
    3656
Note: See TracChangeset for help on using the changeset viewer.