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]
Other format: [Raw text]

Re: further question regarding the use of Muenchian Method


> <xsl:key name="SortAuthor" match="adventure | sci-fi/star-trek" use="author"/>

You create the key on adventure and scifi/star-trek ans you compare

> <xsl:for-each select="booklist[generate-id() = 
> generate-id(key('SortAuthor', adventure/author | 
> sci-fi/star-trek/author)[1])]">

booklist elements with this key.

A <xsl:for-each select="(booklist/adventure |
booklist/scifi/star-trek)[...]"> should work.

Regards,

Joerg

> <books>
> <author>
> <xsl:value-of select="adventure/author | sci-fi/star-trek/author"/>
> </author>
> ....more code
> </books>
> </xsl:for-each>
> 
> but it seems it doesnot regonise anything, please can somebody help me 
> out on this one
> Mank thanks
> Regards
> Kit


 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]