Jump to content
kb1jop

How do I grab one occurrence of each of the different values from a vector?

Recommended Posts

I want to grab one occurrence of each of the different DivTypeV values from this vector below. The first one is easy [<xsl:variable name="Opt1" select="$myVector/DivTypeV[1]"/>] but then I try to loop through and only grab one of the ones that are not the same. Have been pulling my hair out trying to find examples on how to do that. Some that claim to work just don’t. Much trial and error without success. Any clues?

 

<DivType id="Display">

<DivTypeBaseDate>2014-08-20</DivTypeBaseDate>

<DivTypeEndDate>2090-08-20</DivTypeEndDate>

<DivTypeV tc="3">Paid Up Additions</DivTypeV>

<DivTypeV tc="3">Paid Up Additions</DivTypeV>

<DivTypeV tc="3">Paid Up Additions</DivTypeV>

<DivTypeV tc="8">Reduce Premiums/PUAs</DivTypeV>

<DivTypeV tc="8">Reduce Premiums/PUAs</DivTypeV>

<DivTypeV tc="8">Reduce Premiums/PUAs</DivTypeV>

<DivTypeV tc="4">Accumulate at Interest</DivTypeV>

<DivTypeV tc="4">Accumulate at Interest</DivTypeV>

<DivTypeV tc="4">Accumulate at Interest</DivTypeV>

<DivTypeV tc="4">Accumulate at Interest</DivTypeV>

<DivTypeV tc="4">Accumulate at Interest</DivTypeV>

<DivTypeV tc="4">Accumulate at Interest</DivTypeV>

<DivTypeV tc="4">Accumulate at Interest</DivTypeV>

</DivType>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...