[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Keys with duplicates should be simple
When I run this (with my own implementation of identity.xsl, with
Saxon-EE 9.5.1.3 invoked from the oXygen 15.2 debugger), I get:
<duplicate> <a href="/person/allison-benedikt/"/> <a href="/person/allison-benedikt/"/> </duplicate> So there are no other records than the duplicates. In order to just have a single line per duplicate group, I donbt see a straightforward solution that uses the key. And if you're using for-each-group anyway, you can do without the keys: <xsl:for-each-group select="a" group-by="@href"> <xsl:if test="count(current-group()) gt 1"> <xsl:apply-templates select="."/> </xsl:if> </xsl:for-each-group> Gerrit On 31.01.2014 01:19, Ihe Onwuka wrote: Wanting all <a> elements that have more than one hyperlink to the same person.
Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930 GeschC$ftsfC<hrer: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt, Dr. Reinhard VC6ckler
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|