xsl-list
[Top] [All Lists]

Re: [xsl] How to remove duplicate record from XML

2016-09-28 08:08:51
On 28.09.2016 15:03, Rahul Singh rahulsinghindia15(_at_)gmail(_dot_)com wrote:
        <xsl:for-each-group select="Contact" group-by="id">
            <xsl:sequence select="."/>
        </xsl:for-each-group>


Use

        <xsl:for-each-group select="Contact" group-by="id">
            <xsl:if test="count(current-group()) eq 1">
               <xsl:copy-of select="."/>
            </xsl:if>
        </xsl:for-each-group>
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>