The biggest problem encountered while trying to design a system that was completely foolproof,
was, that people tended to underestimate the ingenuity of complete fools. Douglas Adams
I would have suggested posting on the Altova forums, but I see you've already done that... There are 2 major problems here:
1. Finding the unique names (or Codes).
2. Finding the Person elements with this name.
I can't see a way to do this without using a custom xslt library function. Tools - Options - Libraries - Add - (xslt file)
Put this in the xslt file you're adding.
<xsl:template name="firstPerson">
<!-- returns true if this is the first person with this name -->
<xsl:param name="Person"/>
<xsl:for-each select="$Person">
<xsl:choose>
<xsl:when test="not(preceding-sibling::Person[Name=$Person/Name])">true</xsl:when>
<xsl:otherwise>false</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
Use this as a filter condition, as to whether you want a new result person or not.
Can't think of how to do the 2nd part in mapforce... Really, using a custom XSLT sheet for this one transformation is the way to go, but then you'd have to learn xslt. Maybe someone else has a better idea.
Last edited by jkmyoung; November 29th, 2004 at 06:50 PM.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.