Altova Mailing List Archives


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

From: "Michael Kay" <michael.h.kay@------------>
To:
Date: 4/15/2002 10:56:00 AM
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 ªL ¤lªä
> 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
>
>
> _________________________________________________________________
> ¦b±zªº¦æ°Ê¸Ë¸m¤W¶Ç°e±µ¦¬ Hotmail ¶l¥ó¡A½Ð²¾¦Ü http://mobile.msn.com¡C
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.