admin/reports.xslt
author abraaksm
Fri, 10 Apr 2015 01:06:45 +0200
branchreport
changeset 948 34e4ac52bc0a
parent 946 782b585bea00
permissions -rw-r--r--
Reporting update
520
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
     2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
     3
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
     4
    xmlns:math="http://www.w3.org/2005/xpath-functions/math"
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
     5
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
     6
    xmlns:xt="http://xt3report.com/functions"
520
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
     7
    xmlns="http://www.w3.org/2012/10/xslt-test-catalog"
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
     8
    xpath-default-namespace="http://www.w3.org/2012/10/xslt-test-catalog"
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
     9
    exclude-result-prefixes="math xs xsi"
520
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    10
    version="3.0">
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    11
    
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    12
    <xsl:output indent="yes"/>
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    13
    
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    14
    <xsl:mode name="report" on-no-match="shallow-copy" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    15
    
520
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    16
    <xsl:template match="/">
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    17
        <report>
520
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    18
            <xsl:apply-templates select="doc('../catalog.xml')" mode="catalog"/>
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    19
        </report>
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    20
    </xsl:template>
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    21
    
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    22
    <xsl:template match="/" mode="catalog">
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    23
        <xsl:variable name="all">
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    24
            <category name="Attributes">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    25
                <xsl:apply-templates select="catalog/test-set[@file/contains(., '/attr/')]" mode="#current" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    26
            </category>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    27
            <category name="Declarations">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    28
                <xsl:apply-templates select="catalog/test-set[@file/contains(., '/decl/')]" mode="#current" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    29
            </category>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    30
            <category name="Expressions">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    31
                <xsl:apply-templates select="catalog/test-set[@file/contains(., '/expr/')]" mode="#current" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    32
            </category>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    33
            <category name="Functions">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    34
                <xsl:apply-templates select="catalog/test-set[@file/contains(., '/fn/')]" mode="#current" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    35
            </category>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    36
            <category name="Instructions">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    37
                <xsl:apply-templates select="catalog/test-set[@file/contains(., '/insn/')]" mode="#current" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    38
            </category>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    39
            <category name="Miscellaneous">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    40
                <xsl:apply-templates select="catalog/test-set[@file/contains(., '/misc/')]" mode="#current" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    41
            </category>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    42
            <category name="Posture and Sweep">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    43
                <xsl:apply-templates select="catalog/test-set[@file/contains(., '/sandp/')]" mode="#current" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    44
            </category>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    45
            <category name="Streaming">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    46
                <xsl:apply-templates select="catalog/test-set[@file/contains(., '/strm/')]" mode="#current" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    47
            </category>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    48
            <category name="Typing and schema">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    49
                <xsl:apply-templates select="catalog/test-set[@file/contains(., '/type/')]" mode="#current" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    50
            </category>
520
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    51
        </xsl:variable>
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    52
        <xsl:apply-templates select="$all" mode="report" />
520
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    53
    </xsl:template>
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
    54
    
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    55
    <xsl:template match="/" mode="report">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    56
        <xsl:copy>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    57
            <xsl:copy-of select="@*" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    58
            <overview total-tests-in-xt3="{sum(//test-set/@total-tests)}">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    59
                <xslt3-specific count="{sum(//xslt3-specific/@count)}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    60
                <xslt2-specific count="{sum(//xslt2-specific/@count)}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    61
                <xslt-other count="{sum(//xslt-other/@count)}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    62
            </overview>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    63
            <changes-since-xslt2>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    64
                <!-- packages -->
948
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    65
                <feature group="Packages" name="Packages - versioning" count="{15 (: deep query needed :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    66
                <feature group="Packages" name="Packages - package" count="{sum(//category[@name='Declarations']/test-set[@name=('package')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    67
                <feature group="Packages" name="Packages - use-package" count="{sum(//category[@name='Declarations']/test-set[@name=('use-package')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    68
                <feature group="Packages" name="Packages - override" count="{sum(//category[@name='Declarations']/test-set[@name=('override')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    69
                <feature group="Packages" name="Packages - xquery" count="{'unknown'}" />
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    70
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    71
                <!-- streaming -->
948
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    72
                <feature group="Streaming" name="Streaming - instructions" count="{sum(//category[@name='Streaming']/test-set[@name/starts-with(., 'si')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    73
                <feature group="Streaming" name="Streaming - functions" count="{sum(//category[@name='Streaming']/test-set[@name/starts-with(., 'sf')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    74
                <feature group="Streaming" name="Streaming - expressions" count="{sum(//category[@name='Streaming']/test-set[@name/starts-with(., 'sx')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    75
                <feature group="Streaming" name="Streaming - posture and sweep" count="{sum(//category[@name=('Posture and Sweep')]/test-set/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    76
                <feature group="Streaming" name="Streaming - other" count="{sum(//category[@name='Streaming']/test-set[@name[not(starts-with(., 'si') or starts-with(., 'sf') or starts-with(., 'sx'))]]/@total-tests)}" />
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    77
                
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    78
                <!-- new declarations -->
948
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    79
                <feature group="Declarations" name="Accumulators" count="{sum(//category[@name='Declarations']/test-set[@name='accumulator']/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    80
                <feature group="Declarations" name="Mode declarations" count="{sum(//category[@name=('Attributes' (: there's no decl/mode category :) , 'Miscellaneous')]/test-set[@name=('initial-mode', 'mode')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    81
                <feature group="Declarations" name="Import declaration order relaxation" count="{sum(//category[@name=('Declarations')]/test-set[@name=('import')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    82
                <feature group="Declarations" name="Context item declaration" count="{sum(//category[@name=('Declarations')]/test-set[@name=('context-item')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    83
                <feature group="Declarations" name="Global context item declaration" count="{sum(//category[@name=('Declarations')]/test-set[@name=('global-context-item')]/@total-tests)}" />
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    84
                
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    85
                <!-- new instructions -->
948
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    86
                <feature group="Instructions" name="Try / catch" count="{sum(//category[@name='Instructions']/test-set[@name=('try')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    87
                <feature group="Instructions" name="Try / catch - rollback-output" count="{2 (: deep-search needed :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    88
                <feature group="Instructions" name="Iteration (xsl:iterate)" count="{sum(//category[@name='Instructions']/test-set[@name=('iterate')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    89
                <feature group="Instructions" name="Dynamic evaluation (xsl:evaluate)" count="{sum(//category[@name='Instructions']/test-set[@name=('evaluate')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    90
                <feature group="Instructions" name="Assertions (xsl:assert)" count="{sum(//category[@name='Instructions']/test-set[@name=('assert')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    91
                <feature group="Instructions" name="Merging (xsl:merge, incl strm)" count="{sum(//category[@name=('Instructions', 'Streaming')]/test-set[@name=('merge', 'si-merge')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    92
                <feature group="Instructions" name="Conditional content construction (all)" count="{70 + 28 (: see next :)  + sum(//category[@name='Instructions']/test-set[@name=('on-empty', 'on-non-empty')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    93
                <feature group="Instructions" name="Conditional content construction - conditional-content" count="{70 (: deep search needed :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    94
                <feature group="Instructions" name="Conditional content construction - on-empty" count="{28 (: deep search needed :) + sum(//category[@name='Instructions']/test-set[@name=('on-empty')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    95
                <feature group="Instructions" name="Conditional content construction - on-non-empty" count="{(: all are in cat on-non-empty :) sum(//category[@name='Instructions']/test-set[@name=('on-non-empty')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    96
                <feature group="Instructions" name="Enhancements to analyze-string" count="{sum(//category[@name=('Instructions')]/test-set[@name=('analyze-string')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    97
                <feature group="Instructions" name="Value-of enhancement (empty)" count="{sum(//category[@name=('Instructions')]/test-set[@name=('value-of')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
    98
                <feature group="Instructions" name="Number (xsl:number format-number) enhancements" count="{sum(//category[@name=('Instructions', 'Functions')]/test-set[@name=('number', 'format-number')]/xslt3-specific/@count)}" />
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
    99
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   100
                <!-- new attributes -->
948
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   101
                <feature group="Attributes" name="Declared modes" count="{sum(//category[@name='Attributes']/test-set[@name=('declared-modes')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   102
                <feature group="Attributes" name="Decimal format with exponent-separator" count="{(: there is no cat decimal-format, create/move from format-number? :) sum(//category[@name=('Attributes', 'Declarations')]/test-set[@name=('decimal-format', 'exponent-separator')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   103
                <feature group="Attributes" name="Composite keys in for-each-group" count="{15 (: deep search needed:) (: sum(//category[@name=('Instructions')]/test-set[@name=('for-each-group')]/xslt3-specific/@count) :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   104
                <feature group="Attributes" name="Composite keys in keys" count="{sum(//category[@name=('Functions')]/test-set[@name=('key')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   105
                <feature group="Attributes" name="Select attribute on copy instruction" count="{sum(//category[@name=('Instructions')]/test-set[@name=('copy')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   106
                <feature group="Attributes" name="Static variables and parameters" count="{sum(//category[@name=('Attributes')]/test-set[@name=('static')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   107
                <feature group="Attributes" name="Cache, override, identity attributes on function declaration" count="{sum(//category[@name=('Declarations')]/test-set[@name=('function')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   108
                <feature group="Attributes" name="Shadow attributes" count="{sum(//category[@name=('Attributes')]/test-set[@name=('shadow')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   109
                <feature group="Attributes" name="Use-when enhancements" count="{sum(//category[@name=('Attributes')]/test-set[@name=('use-when')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   110
                <feature group="Attributes" name="Error-code attribute on message" count="{(: deep query needed :) sum(//category[@name=('Instructions')]/test-set[@name=('message')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   111
                <feature group="Attributes" name="Html-version attribute on xsl:output/result-document (HTML5 support)" count="{30 (: 4 on r-doc, 26 on output, deep search needed :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   112
                <feature group="Attributes" name="Item-separator attribute on xsl:output/result-document" count="{0 (: none found, deep search needed :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   113
                <feature group="Attributes" name="Parameter-document attribute on xsl:output/result-document" count="{0 (: none found, deep search needed :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   114
                <feature group="Attributes" name="Suppress-indentation attribute on xsl:output/result-document" count="{(: deep query needed? :) sum(//category[@name=('Declarations', 'Instructions')]/test-set[@name=('output', 'result-document')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   115
                <feature group="Attributes" name="Disable-output-escaping silently ignored" count="{2 (: deep query needed? :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   116
                <feature group="Attributes" name="Enhancements on typed=lax for non-validating processors" count="{'unknown'}" />
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   117
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   118
                <!-- stylesheet initialization -->
948
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   119
                <feature group="Stylesheet initialization" name="Initial function" count="{sum(//category[@name='Miscellaneous']/test-set[@name=('initial-function')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   120
                <feature group="Stylesheet initialization" name="Initial template (xsl:initial-template)" count="{sum(//category[@name='Miscellaneous']/test-set[@name=('initial-template')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   121
                <feature group="Stylesheet initialization" name="Initial mode" count="{sum(//category[@name=('Attributes', 'Miscellaneous')]/test-set[@name=('initial-mode')]/xslt3-specific/@count)}" />
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   122
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   123
                <!-- new functions -->
948
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   124
                <feature group="Functions" name="Higher order functions" count="{sum(//category[@name='Expressions']/test-set[@name=('higher-order-functions')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   125
                <feature group="Functions" name="New function current-output-uri" count="{sum(//category[@name=('Functions')]/test-set[@name=('current-output-uri')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   126
                <feature group="Functions" name="New function collation-key" count="{sum(//category[@name=('Functions')]/test-set[@name=('collation-key')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   127
                <feature group="Functions" name="New function copy-of" count="{sum(//category[@name=('Functions', 'Streaming')]/test-set[@name=('copy-of', 'sf-copy-of')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   128
                <feature group="Functions" name="New function json-to-xml" count="{sum(//category[@name=('Functions')]/test-set[@name=('json-to-xml')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   129
                <feature group="Functions" name="New function snapshot" count="{sum(//category[@name=('Functions', 'Streaming')]/test-set[@name=('snapshot', 'sf-snapshot')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   130
                <feature group="Functions" name="New function stream-available" count="{sum(//category[@name=('Functions', 'Streaming')]/test-set[@name=('stream-available', 'sf-stream-available')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   131
                <feature group="Functions" name="New function xml-to-json" count="{sum(//category[@name=('Functions')]/test-set[@name=('xml-to-json')]/@total-tests)}" />
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   132
                
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   133
                <!-- changes in existing functions -->
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   134
                <!-- note: regex-group, document, type-available and key have not changed, but normative references have -->
948
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   135
                <feature group="Functions" name="Enhancements on function deep-equal (maps support)" count="{(: there are three tests in maps that test disappearance of deep-equal2 :) sum(//category[@name=('Functions')]/test-set[@name=('deep-equal')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   136
                <feature group="Functions" name="Enhancements on function document (new error)" count="{(: there are three tests in maps that test disappearance of deep-equal2 :) sum(//category[@name=('Functions')]/test-set[@name=('document')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   137
                <feature group="Functions" name="Enhancements on function format-number (moved, but new formats)" count="{sum(//category[@name=('Functions')]/test-set[@name=('format-number')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   138
                <feature group="Functions" name="Enhancements on function key (composite keys)" count="{sum(//category[@name=('Functions')]/test-set[@name=('key')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   139
                <feature group="Functions" name="Enhancements on function type-available (XSD 1.1)" count="{sum(//category[@name=('Functions')]/test-set[@name=('type-available')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   140
                <feature group="Functions" name="Enhancements on function system-property (new properties)" count="{sum(//category[@name=('Functions')]/test-set[@name=('system-property')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   141
                <feature group="Functions" name="Enhancements on function unparsed-entity-uri (arity zero)" count="{(: only one 2.0 test :) sum(//category[@name=('Functions')]/test-set[@name=('unparsed-entity-uri')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   142
                <feature group="Functions" name="Enhancements on function unparsed-entity-public-id (arity zero)" count="{(: cat does not exist :) sum(//category[@name=('Functions')]/test-set[@name=('unparsed-entity-public-id')]/xslt3-specific/@count)}" />
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   143
                
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   144
                <!-- maps (functions count by hand) -->
948
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   145
                <feature group="Maps" name="Maps - function contains" count="{1 (: in accumulator :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   146
                <feature group="Maps" name="Maps - function entry" count="{0 (: can't find, probably none yet :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   147
                <feature group="Maps" name="Maps - function get" count="{2 (: in accumulator, maps :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   148
                <feature group="Maps" name="Maps - function for-each" count="{0 (: can't find, probably none yet :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   149
                <feature group="Maps" name="Maps - function keys" count="{4 (: si-iterate, maps, accumulator :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   150
                <feature group="Maps" name="Maps - function merge" count="{5 (: si-iterate, maps, sx-MapExpr :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   151
                <feature group="Maps" name="Maps - function put" count="{2 (: accumulator :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   152
                <feature group="Maps" name="Maps - function remove" count="{0 (: can't find, probably none yet :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   153
                <feature group="Maps" name="Maps - function size" count="{2 (: error, maps :)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   154
                <feature group="Maps" name="Maps - expressions / other" count="{36 (: total in maps of 52, minus the above of 16 :)}" />
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   155
                
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   156
                <!-- other -->
948
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   157
                <feature group="Other" name="Expand text, text value templates" count="{sum(//category[@name='Attributes']/test-set[@name=('expand-text')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   158
                <feature group="Other" name="Pattern enhancements" count="{sum(//category[@name='Attributes']/test-set[@name=('match')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   159
                <feature group="Other" name="EQName adoption" count="{23 (: deep search needed, or new category :) }" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   160
                <feature group="Other" name="JSON support (total)" count="{sum(//category[@name=('Functions')]/test-set[@name=('json-to-xml', 'xml-to-json')]/@total-tests)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   161
                <feature group="Other" name="Default collation enhancements (allowed on any element)" count="{sum(//category[@name=('Functions', 'Miscellaneous')]/test-set[@name=('collation', 'collations')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   162
                <feature group="Other" name="Backwards compatibility (XSLT 3.0 to 2.0)" count="{sum(//category[@name=('Miscellaneous')]/test-set[@name=('backwards', 'xslt-compat')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   163
                <feature group="Other" name="New error conditions and codes" count="{sum(//category[@name=('Miscellaneous')]/test-set[@name=('error')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   164
                <feature group="Other" name="Recoverable errors do not exist anymore" count="{'unknown'}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   165
                <feature group="Other" name="Enhancements to serialization (all)" count="{sum(//category[@name=('Declarations', 'Instructions')]/test-set[@name=('output', 'result-document')]/xslt3-specific/@count)}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   166
                <feature group="Other" name="Type attribute validation with complex types and copy/copy-of (XTTE1535)" count="{'unknown'}" />
34e4ac52bc0a Reporting update
abraaksm
parents: 946
diff changeset
   167
                <feature group="Other" name="XSD 1.1 types" count="{'unknown'}" />
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   168
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   169
            </changes-since-xslt2>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   170
            <xsl:apply-templates mode="report" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   171
        </xsl:copy>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   172
    </xsl:template>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   173
    
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   174
    <xsl:template match="category" mode="report">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   175
         <xsl:copy>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   176
             <xsl:copy-of select="@*" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   177
             <overview total-tests-in-category="{sum(.//test-set/@total-tests)}">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   178
                 <xslt3-specific count="{sum(.//xslt3-specific/@count)}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   179
                 <xslt2-specific count="{sum(.//xslt2-specific/@count)}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   180
                 <xslt-other count="{sum(.//xslt-other/@count)}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   181
             </overview>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   182
             <xsl:apply-templates mode="report" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   183
         </xsl:copy>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   184
    </xsl:template>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   185
    
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   186
    <xsl:template match="*:report" mode="report">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   187
         <xsl:copy>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   188
             <overview>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   189
                 <xslt3-specific count="{sum(//xslt3-specific/@count)}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   190
                 <xslt2-specific count="{sum(//xslt2-specific/@count)}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   191
                 <xslt-other count="{sum(//xslt-other/@count)}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   192
             </overview>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   193
             <xsl:apply-templates />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   194
         </xsl:copy>
520
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   195
    </xsl:template>
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   196
    
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   197
    
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   198
    
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   199
    <xsl:template match="test-set" mode="catalog">
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   200
        <xsl:apply-templates select="doc(concat('../', @file))" mode="test-set" />
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   201
    </xsl:template>
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   202
    
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   203
    <!-- count the number of tests depending on the XSLT version supported -->
520
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   204
    <xsl:template match="/" mode="test-set">
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   205
        
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   206
        
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   207
        <xsl:variable name="xslt3" select="xt:count-tests-by-spec-version(test-set, 'XSLT30')" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   208
        <xsl:variable name="xslt2" select="xt:count-tests-by-spec-version(test-set, 'XSLT20')" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   209
        
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   210
        <test-set total-tests="{count(test-set/test-case)}" name="{test-set/@name}" description="{normalize-space(test-set/description)}">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   211
            <xslt3-specific count="{$xslt3}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   212
            <xslt2-specific count="{$xslt2}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   213
            <xslt-other  count="{count(test-set/test-case) - $xslt3 - $xslt2}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   214
            <keywords use-when="false()">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   215
                <xsl:variable name="keywords" select="distinct-values(test-set/test-case/keywords/tokenize(., ' '))"/>
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   216
                <xsl:variable name="keywords-with-dupes" select="test-set/test-case/keywords/tokenize(., ' ')" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   217
                <xsl:for-each select="$keywords">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   218
                    <key name="{.}" count="{count($keywords-with-dupes[. = current()])}" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   219
                </xsl:for-each>                    
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   220
            </keywords>
520
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   221
        </test-set>
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   222
    </xsl:template>
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   223
    
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   224
    <!-- count number of tests in a test-set based on spec-version -->
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   225
    <xsl:function name="xt:count-tests-by-spec-version">
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   226
        <xsl:param name="test-set" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   227
        <xsl:param name="spec-version" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   228
        
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   229
        <xsl:variable name="count-all-in-set" select="count($test-set/test-case)" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   230
        
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   231
        <xsl:value-of select="(: if a top level dependencies is present :)
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   232
            if($test-set/dependencies/spec[@value/contains(., $spec-version)])
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   233
            
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   234
            (: then count all, except those that are overridden :)
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   235
            then $count-all-in-set -  count($test-set/test-case/dependencies[spec[@value/not(contains(., $spec-version))]])
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   236
            
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   237
            (: else, count only the ones that are overridden locally :)
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   238
            else count($test-set/test-case/dependencies[spec[@value/contains(., $spec-version)]])" />
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   239
    </xsl:function>
520
58bfade9efbe Several report and keyword helper xsl files in admin section
abraaksm
parents:
diff changeset
   240
    
946
782b585bea00 Updated reports
abraaksm
parents: 520
diff changeset
   241
 </xsl:stylesheet>