How to grab one occurrence of each of different values on a
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 1
- Joined: Wed Sep 10, 2014 3:28 pm
How to grab one occurrence of each of different values on a
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>
<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>
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service