Changeset 20840 in main


Ignore:
Timestamp:
06/18/20 10:56:24 (3 weeks ago)
Author:
GarthBraithwaite_STG
Message:

view - added support for qm named dimension includes.

Location:
trunk/ibisph-view/src/main/webapp/xslt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ibisph-view/src/main/webapp/xslt/_ibis-include.xslt

    r19893 r20840  
    147147                        formed with a root/master/parent element.
    148148
    149                         If a children-only-flag attribute exists in the element then only
    150                         only the sub elements and child text are included and processed.
    151                         This is useful for including an element's text without having to
    152                         include its root element.
     149                        If a children-only-flag attribute exists in the element then only the
     150                        sub elements and child text are included and processed. This is useful
     151                        for including an element's text without having to include its root
     152                        element or for custom dimension lists for query modules.
    153153                "
    154154        >
  • trunk/ibisph-view/src/main/webapp/xslt/xml/query/module/ConfigurationIncludeCriteriaExclude.xslt

    r20134 r20840  
    147147        </xsl:template>
    148148
     149
     150        <xsl:template match="ibis:include[boolean(@dimension-name-list)]" mode="#all"
     151                ibis:doc="
     152                        Provides the ability to limit included DIMENSION to a given name or
     153                        CSV list of names.  See the ibis:include function for more info about
     154                        this template.
     155
     156                        This template handles a space and/or comma separated list of dim
     157                        name list.  This code handles multiple spaces etc.
     158                "
     159        >
     160                <xsl:variable name="dimensionNames" select="tokenize(normalize-space(replace(@dimension-name-list, ',', ' ')), '\s+')"/>
     161                <xsl:variable name="dimensions"         select="document(@href, /)/DIMENSIONS"/>
     162<!--
     163<xsl:message select="'xxxxxxxxxxxxxxxxxxxxxxxx'"/>
     164<xsl:message select="$dimensionNames"/>
     165<xsl:message select="count($dimensionNames)"/>
     166<xsl:message select="$dimensions"/>
     167-->
     168
     169                <xsl:for-each select="$dimensionNames">
     170                        <xsl:apply-templates select="$dimensions/DIMENSION[NAME=current()]" mode="ibis.copy"/>
     171                </xsl:for-each>
     172        </xsl:template>
     173
     174
    149175</xsl:stylesheet>
    150176<!-- ============================= End of File ============================= -->
Note: See TracChangeset for help on using the changeset viewer.