Guest User

Untitled

a guest
Oct 16th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <xsl:template name="DisplaySortedData">
  2. <xsl:for-each select="$customer/id">
  3. <xsl:call-template name="DisplayData" />
  4. </xsl:for-each>
  5. </xsl:template>
  6.  
  7. <xsl:variable name="vipList" select="'1001|1002|1003|1004|1005|1006|1007|1008|1009|1010|1011|1012'"/>
  8.  
  9. <xsl:template name="DisplaySortedData">
  10. <xsl:variable name="vipList" select="'1001|1002|1003|1004|1005|1006|1007|1008|1009|1010|1011|1012'"/>
  11. <xsl:variable name="OptimizedIDs" select="'true'"/>
  12. <xsl:for-each select="$customer/id">
  13. <xsl:variable name="custID" select="@id"/>
  14. <xsl:choose>
  15. <xsl:when test="$OptimizedIDs='true' and contains(concat('|',$vipList,'|'),concat('|',$custID,'|'))">
  16. <xsl:call-template name="DisplayDataAsDropdown" />
  17. </xsl:when>
  18. <xsl:otherwise>
  19. <xsl:call-template name="DisplayData" />
  20. </xsl:otherwise>
  21. </xsl:choose>
  22. </xsl:for-each>
  23. </xsl:template>
Add Comment
Please, Sign In to add comment