Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsl:template name="DisplaySortedData">
- <xsl:for-each select="$customer/id">
- <xsl:call-template name="DisplayData" />
- </xsl:for-each>
- </xsl:template>
- <xsl:variable name="vipList" select="'1001|1002|1003|1004|1005|1006|1007|1008|1009|1010|1011|1012'"/>
- <xsl:template name="DisplaySortedData">
- <xsl:variable name="vipList" select="'1001|1002|1003|1004|1005|1006|1007|1008|1009|1010|1011|1012'"/>
- <xsl:variable name="OptimizedIDs" select="'true'"/>
- <xsl:for-each select="$customer/id">
- <xsl:variable name="custID" select="@id"/>
- <xsl:choose>
- <xsl:when test="$OptimizedIDs='true' and contains(concat('|',$vipList,'|'),concat('|',$custID,'|'))">
- <xsl:call-template name="DisplayDataAsDropdown" />
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="DisplayData" />
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </xsl:template>
Add Comment
Please, Sign In to add comment