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="../../../Page.xslt"/> |
---|
10 | |
---|
11 | |
---|
12 | <xsl:param name="Page.pageTitle" ibis:doc="Page's title text.">Alphabetical Health Indicator Profile Report Selection List</xsl:param> |
---|
13 | |
---|
14 | <xsl:param name="alphabet" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/> |
---|
15 | <xsl:variable name="alphabetLength" select="string-length($alphabet)"/> |
---|
16 | |
---|
17 | |
---|
18 | <xsl:template name="Page.sectionsContent" |
---|
19 | ibis:doc="Main page content template that creates an HTML table |
---|
20 | which lists all the indicator's with a link to their default |
---|
21 | indicator profile view." |
---|
22 | > |
---|
23 | Welcome to the alphabetical selection list of all available health indicator |
---|
24 | reports. To view a health indicator profile report, click on the item's title |
---|
25 | located in the following list. |
---|
26 | <br/><br/> |
---|
27 | |
---|
28 | <xsl:call-template name="alphaJumpToLine"/> |
---|
29 | <table cellspacing="0" cellpadding="0" border="1" class="Info ExtraCellPadding" |
---|
30 | summary="Alphabetical listing for all indicator profile selections. |
---|
31 | First column contains the indicator profile link with the title |
---|
32 | being the indicator profile title. The next column provides the |
---|
33 | published date for that indicator profile. |
---|
34 | " |
---|
35 | caption="Alphabetical listing for all indicator profile selections." |
---|
36 | > |
---|
37 | <thead><tr> |
---|
38 | <th scope="col" width="450" title="To view the default chart and basic indicator information, click on the indicator's title below.">Indicator Profile Title</th> |
---|
39 | <th scope="col" width="100" title="This is the date these data were certified current and valid.">Published Date</th> |
---|
40 | </tr></thead> |
---|
41 | <tfoot><tr><td colspan="2"> |
---|
42 | <div class="RecordCount">Record Count: <xsl:value-of select="count(/INDICATORS/INDICATOR)"/></div> |
---|
43 | </td></tr></tfoot> |
---|
44 | |
---|
45 | <!-- loop for all published indicators --> |
---|
46 | <tbody> |
---|
47 | <xsl:for-each select="/INDICATORS/INDICATOR"> |
---|
48 | <xsl:sort select="TITLE"/> |
---|
49 | <tr> |
---|
50 | <td><a name="{substring(TITLE, 1, 1)}" |
---|
51 | href="{concat($ibis.urlPrefix, 'indicator/view/', DEFAULT_INDICATOR_VIEW_NAME, '.html')}" |
---|
52 | title="Click here to see the default chart for {TITLE}"> |
---|
53 | <xsl:value-of select="TITLE"/> |
---|
54 | </a></td> |
---|
55 | <td class="TextAlignCenter" title="Data as of Date: {DATA_SOURCE_DATE}"> |
---|
56 | <xsl:value-of select="PUBLISHED_DATE"/> |
---|
57 | </td> |
---|
58 | </tr> |
---|
59 | </xsl:for-each> |
---|
60 | </tbody> |
---|
61 | </table> |
---|
62 | <br/> |
---|
63 | <xsl:call-template name="alphaJumpToLine"/> |
---|
64 | </xsl:template> |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | <xsl:template name="alphaJumpToLine" ibis:doc="Internal helper that displays the alpha jump to links."> |
---|
69 | <div class="JumpToLinks"> |
---|
70 | Index: |
---|
71 | <xsl:call-template name="alphaAnchorJumpTo"> |
---|
72 | <xsl:with-param name="position" select="1"/> |
---|
73 | </xsl:call-template> |
---|
74 | </div> |
---|
75 | </xsl:template> |
---|
76 | |
---|
77 | |
---|
78 | |
---|
79 | <xsl:template name="alphaAnchorJumpTo" ibis:doc="Internal helper used by the 'alphaJumpToLine' template to build the 'a' link character."> |
---|
80 | <xsl:param name="position"/> |
---|
81 | |
---|
82 | <xsl:param name="letter" select="substring($alphabet, $position, 1)"/> |
---|
83 | <a href="#{$letter}" title="Jump to the indicators that begin with {$letter}"><xsl:value-of select="$letter"/></a> |
---|
84 | |
---|
85 | <xsl:if test="$position < $alphabetLength"> |
---|
86 | <xsl:call-template name="alphaAnchorJumpTo"> |
---|
87 | <xsl:with-param name="position" select="number($position) + 1"/> |
---|
88 | </xsl:call-template> |
---|
89 | </xsl:if> |
---|
90 | </xsl:template> |
---|
91 | |
---|
92 | </xsl:stylesheet> |
---|
93 | <!-- ============================= End of File ============================= --> |
---|