xsl-list
[Top] [All Lists]

Re: [xsl] Eliminate repeated

2008-05-29 02:28:11
IZASKUN GUTIERREZ GUTIERREZ wrote:

  Hi

    <xsl:template match="/">
         <xsl:for-each select="file/entry/child::*" >
           <xsl:value-of select="name()"/>
         </xsl:for-each>
    </xsl:template>

[...]

But I need that the output: book,article,inbook,manual  eliminating  
the repeated values.

    <xsl:value-of
        select="distinct-values(file/entry/*/name(.))"
        separator=", "/>

  Regards,

--drkm




















__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible 
contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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