Changeset 20706 in main


Ignore:
Timestamp:
06/05/20 14:07:47 (5 weeks ago)
Author:
GarthBraithwaite_STG
Message:

view - removed report xslts that were not used/not 100% working.

Location:
trunk/ibisph-view/src/main/webapp/xslt/html/query
Files:
10 deleted
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/ibisph-view/src/main/webapp/xslt/html/query/module/report/dimension_names_by_file.xslt

    r20705 r20706  
    1212
    1313        <ibis:doc>
    14                 <name>html/query/module/report/answer_names_by_file</name>
    15                 <summary>Report that lists ALL unique answer names by module file</summary>
     14                <name>html/query/module/report/dimension_names_by_file</name>
     15                <summary>Report that lists ALL unique Dimension names by module file</summary>
    1616                <description>
    17                         Creates a report that lists the unique ANSWERS/NAME and ANSWER/NAME
     17                        Creates a report that lists the unique DIMENSION/NAME
    1818                        values by the module XML file.  This XSLT handles xincludes and shows
    1919                        which NAMEs are within each xinclude and indentures according to how
     
    2323        </ibis:doc>
    2424
    25         <xsl:param name="AnserNamesByFile.filenamePath" select="'../'"/>
     25        <xsl:param name="DimensionNamesByFile.filenamePath" select="'../'"/>
    2626
    27         <xsl:param name="Page.pageTitle" ibis:doc="Page's title text.">Query Module Answer Names By File Report</xsl:param>
    28         <xsl:param name="Page.contentTitle" ibis:doc="Main Content's title text."><xsl:value-of select="/FILES/TITLE"/> Answer Names By File Report</xsl:param>
     27        <xsl:param name="Page.pageTitle" ibis:doc="Page's title text.">Query Module Dimension Names By File Report</xsl:param>
     28        <xsl:param name="Page.contentTitle" ibis:doc="Main Content's title text."><xsl:value-of select="/FILES/TITLE"/> Dimension Names By File Report</xsl:param>
    2929
    3030
     
    5050                </style>
    5151
    52                 This report provides a list of all ANSWERS/NAME ANSWER/NAME elements broken
    53                 down (used) by module file.  Note that this report is based on an XML FILES/FILE
     52                This report provides a list of all DIMENSION/NAMEs by module file.  Note
     53                that this report is based on an XML FILES/FILE
    5454                file.  Please verify that all desired module files reside within this XML file.
    5555
    5656                <xsl:for-each select="/FILES/FILE">
    5757                        <xsl:call-template name="processFile">
    58                                 <xsl:with-param name="filename" select="concat($AnserNamesByFile.filenamePath, current()/NAME)"/>
     58                                <xsl:with-param name="filename" select="concat($DimensionNamesByFile.filenamePath, current()/NAME)"/>
    5959                        </xsl:call-template>
    6060                </xsl:for-each><br/>
     
    7373                <xsl:choose>
    7474                        <xsl:when test="exists($file)">
    75                                 <xsl:variable name="answerNames" select="distinct-values($file//ANSWERS/NAME | $file//ANSWER/NAME)"/>
    76                                 <xsl:if test="count($answerNames) != 0">
    77                                         <div class="File">File: <xsl:value-of select="if(contains($filename, '../')) then substring-after($filename, '../') else $filename"/></div>
     75                                <xsl:variable name="names">
     76                                        <xsl:call-template name="includedDimensionNames">
     77                                                <xsl:with-param name="filename" select="$filename"/>
     78                                        </xsl:call-template>
     79                                </xsl:variable>
     80                                <xsl:variable name="dimensionNames" select="distinct-values($names/NAME)"/>
     81
     82                                <xsl:if test="0 != count($dimensionNames)">
     83                                        <div class="File">
     84                                                <xsl:value-of select="$file/QUERY_MODULE/NAME"/> &#160;-&#160;
     85                                                <xsl:value-of select="$file/QUERY_MODULE/TITLE"/> &#160;-&#160;
     86                                                (<xsl:value-of select="$filename"/>)&#160;&#160;&#160;
     87                                                Configs: <xsl:value-of select="count($file/QUERY_MODULE/CONFIGURATIONS/CONFIGURATION)"/>
     88                                        </div>
    7889                                        <div class="Indent">
    79                                                 <xsl:for-each select="$answerNames">
     90                                                <xsl:for-each select="$dimensionNames">
    8091                                                        <xsl:sort select="." order="ascending"/>
    8192                                                        <xsl:value-of select="."/><br/>
    82                                                 </xsl:for-each>
    83 
    84                                                 <xsl:for-each select="$file//ibis:include | $file//xi:include | $file//ibis:include-sub-only">
    85                                                         <xsl:call-template name="processFile">
    86                                                                 <xsl:with-param name="filename" select="@href"/>
    87                                                         </xsl:call-template>
    8893                                                </xsl:for-each>
    8994                                        </div>
     
    99104        </xsl:template>
    100105
     106
     107        <xsl:template name="includedDimensionNames">
     108                <xsl:param name="filename"/>
     109                <xsl:param name="file" select="document($filename, /)"/>
     110
     111                <xsl:copy-of select="$file//DIMENSION/NAME"/>
     112                <xsl:for-each select="$file//ibis:include | $file//xi:include | $file//ibis:include-sub-only">
     113                        <xsl:call-template name="includedDimensionNames">
     114                                <xsl:with-param name="filename" select="@href"/>
     115                        </xsl:call-template>
     116                </xsl:for-each>
     117        </xsl:template>
     118
    101119</xsl:stylesheet>
    102120<!-- ============================= End of File ============================= -->
  • trunk/ibisph-view/src/main/webapp/xslt/html/query/report/usage_by_xinclude_file.xslt

    r19890 r20706  
    9191
    9292                <div style="background-color: #336699; color: white; padding:5px;">
    93                         XInclude File: <xsl:value-of select="$xinclude"/>
    94                         (Total References: <xsl:value-of select="count($elements)"/>)
     93                        Included File: <xsl:value-of select="$xinclude"/> &#160;&#160;
     94                        (Count of References: <xsl:value-of select="count($elements)"/>)
    9595                </div>
    9696
    9797                <xsl:for-each select="distinct-values($elements/NAME)">
    9898                        <xsl:sort select="." order="ascending"/>
    99                         <xsl:value-of select="."/>
    100                         (Parent File Count: <xsl:value-of select="count($elements[NAME=current()])"/>)
     99                        <xsl:value-of select="."/>&#160;&#160;&#160;&#160;
     100                        (Count of References in File: <xsl:value-of select="count($elements[NAME=current()])"/>)
    101101                        <br/>
    102102                </xsl:for-each>
Note: See TracChangeset for help on using the changeset viewer.