RE: [xsl] further question regarding the use of Muenchian Method

Subject: RE: [xsl] further question regarding the use of Muenchian Method
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 15 Apr 2002 20:01:37 +0100
Using multiple elements with different grouping keys shouldn't be a problem,
because you can declare multiple <xsl:key> elements with the same name and
you effectively get the union of all of them.

Grouping across documents is more tricky, because the scope of a key is
restricted to one document. You probably have to build the composite
document as a temporary tree and then do grouping on that.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of 林 子芯
> Sent: 15 April 2002 18:43
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] further question regarding the use of Muenchian Method
>
>
>
> hi
> i was wondering whether it is possible to group the content
> given that they
> belongs to a separate structure (i.e.
> <booklist>
> <adventure>
> <author>author1</author>
> <title>1</title>
> <adventure>
> <adventure>
> <author>author2</author>
> <title>2</title>
> <adventure>
> <adventure>
> <author>author1</author>
> <title>3</title>
> <adventure>
> <sci-fi>
> <star-trek>
> <author>author1</author>
> <title>6</title>
> </star-trek>
> <star-trek>
> <author>author4</author>
> <title>9</title>
> </star-trek>
> </sci-fi>
> </booklist>
>
> transform to
> <booklist>
> <books>
> <author>author1</author>
> <title>1</title>
> <title>3</title>
> <title>6</title>
> </books>
> <books>
> <author>author2</author>
> </title>2</title>
> </books>
> ...etc
>
> since there are two different 'forms' of author 'tags' (i am
> sure there is
> a better description) (i.e adventure/author and
> sci-fi/star-trek)  i could
> not generate the appropiate key for mucheun method (well at
> least i am not
> certain how) but is there are a way to do so?
>
> going deeper into the question, is it possible to do group
> the content even
> the content contain in a separate file (i.e. 1.xml and
> 2.xml)? do i simply
> ise xsl:include?
>
> Thanks for your patiences
> Many thanks
> Regards
> Kit
>
>
> _________________________________________________________________
> 在您的行動裝置上傳送接收 Hotmail 郵件,請移至 http://mobile.msn.com。;
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Current Thread