source: main/trunk/src/main/webapps/ibisph-view/xslt/html/user/status/Page.xslt @ 3706

Last change on this file since 3706 was 3706, checked in by Garth Braithwaite, 10 years ago

java and view - user profile verification.

File size: 2.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<xsl:stylesheet version="2.0" 
4        xmlns:xsl ="http://www.w3.org/1999/XSL/Transform" 
5        xmlns:ibis="http://www.ibisph.org"
6
7        exclude-result-prefixes="ibis"
8>
9        <xsl:import href="../../HTMLContentPage.xslt"/>
10
11
12        <xsl:param name="UserProfile" ibis:doc="user profile xml"/>
13
14
15        <xsl:param name="Page.pageTitle" ibis:doc="Page's title text.">
16                User Status
17        </xsl:param>
18        <xsl:param name="Page.sectionsTitle" ibis:doc="">
19                User Status
20        </xsl:param>
21
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>
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
44        <xsl:template name="HTMLContent.includeConditionalSection"
45                ibis:doc="Callback type template that controls if the section should be
46                        processed.  If the template returns 'T', 'X', or 'Y' then that
47                        content will be included.  If nothing or 'F', 'N' then that cotent
48                        will be omitted.  Default is to omit everything.  Sub XSLTs must
49                        override this template and determine if the content should be shown
50                        based on the XML, params passed in, and the section's ID attribute.
51                "
52        >
53                <xsl:param name="sectionID"/>
54                <xsl:value-of select="boolean($UserProfile/USER/STATUS_CODE = $sectionID)"/>
55        </xsl:template>
56
57</xsl:stylesheet>
58<!-- ============================= End of File ============================= -->
59
Note: See TracBrowser for help on using the repository browser.