xsl-list
[Top] [All Lists]

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

2016-09-30 01:31:29
On 28 September 2016 at 18:38, Martin Honnen 
martin(_dot_)honnen(_at_)gmx(_dot_)de <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

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>


I like this one.

+1

with best regards,
Mukul gandhi
--~----------------------------------------------------------------
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>