This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Is this a legal XPath Expression?


> Basically what I am doing is trying to find unique occurrences of the
> contents of cells in column 15 of an HTML table
> Looks like a job for <saxon:group>, but I couldn't figure out
> how to do it,

If you're happy to use Saxon extensions you may find saxon:distinct() does
the job. Something like

<xsl:apply-templates select="distinct(//TR/TD[15])/.."/>

to process those TRs whose TD[15]'s are different from a previous one.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]