Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

testing for param in custom tag..

 
Veronica Damian
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, I need to test for a param in custom tag..

<xsl:if test="ARTICLE/MAPPING/KEYSET/SECONDARY='NEWS STORY 1'">

but: I have three of these, generated with a loop (so secondary key can be either NEWS STORY 1, NEWS STORY 2, or NEWS STORY 3.. how do I test for if secondary key CONTAINS string 'NEWS STORY' without having to test for entire NEWS STORY 1 or 2 or 3?

(I need a sort of 'indexOf' way of doing this instead of '.equals'.....;)

thank you very much...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic