From: Gregoor, Van Der Eyken (geyken@esual.com)
Date: 06/09/2001 - 08:33
> Bonjour,
>
> J'ai besoin d'aide à propos d'un méthode récursive écrite en XSL. En
> effet je n'arrive pas, et je commence à croire que c'est insoluble, à
> faire en sorte qu'avec une seule transformation l'on puisse passer
> d'une structure plate XML non triée à une sortie hiérarchique comme
> ci-dessous. J'ai essayé plusieurs manières différentes afin
> d'effectuer des tris ( Company_Name, Author, Title ) et de comparer
> chaque élément avec ses précédents ( en utilisant xsl:key ou pas
> d'ailleurs ) mais alors on me renvoit l'élément précédent du fichier
> XML d'origine, de ce fait impossible de comparer le noeud courant avec
> le précédent afin de ne pas répéter. Merci beaucoup
> Gregoor
>
> Format hiérarchique de destination ( sans doublons )
>
> ALPHA BOOKS
> Jerry-j
> 13 Minute Guide to Access (Best Selling)
> Martin, Sherry J.
> Ratliff, Wayne
> 14 Minute Guide to Access (Best Selling)
> 15 Minute Guide to Access (Best Selling
> 11 Minute Guide to Access (Best Selling)
> WADSWORTH PUB CO
> Randall, Peter
> 4 Software Tools With Wordperfect, Vp-Planner, and dBASE
> III Plus
> Ratliff, Wayne
> 4 Software Tools : DOS for IBM PC and MS Dos/Word
>
> Fichier plat XML source ( non trié )
>
> <Import>
> <Row>
> <Title>13 Minute Guide to Access (Best Selling)</Title>
> <ISBN>1-5676145-0-7</ISBN>
> <Author>Jerry J.</Author>
> <Year_Published>1994</Year_Published>
> <Company_Name>ALPHA BOOKS</Company_Name>
> </Row>
> <Row>
> <Title>14 Minute Guide to Access (Best Selling)</Title>
> <ISBN>1-5676145-0-7</ISBN>
> <Author>Martin, Sherry J.</Author>
> <Year_Published>1994</Year_Published>
> <Company_Name>ALPHA BOOKS</Company_Name>
> </Row>
> <Row>
> <Title>15 Minute Guide to Access (Best Selling)</Title>
> <ISBN>1-5676145-0-7</ISBN>
> <Author>Jerry J.</Author>
> <Year_Published>1994</Year_Published>
> <Company_Name>ALPHA BOOKS</Company_Name>
> </Row>
> <Row>
> <Title>11 Minute Guide to Access (Best Selling)</Title>
> <ISBN>1-5676145-0-7</ISBN>
> <Author>Martin, Sherry J.</Author>
> <Year_Published>1994</Year_Published>
> <Company_Name>ALPHA BOOKS</Company_Name>
> </Row>
> <Row>
> <Title>4 Software Tools : DOS for IBM PC and MS Dos/Word
> </Title>
> <ISBN>0-5341497-0-7</ISBN>
> <Author>Ratliff, Wayne</Author>
> <Year_Published>1991</Year_Published>
> <Company_Name>WADSWORTH PUB CO</Company_Name>
> </Row>
> <Row>
> <Title>4 Software Tools With Wordperfect, Vp-Planner,
> and dBASE III Plus</Title>
> <ISBN>0-5340882-0-1</ISBN>
> <Author>Randall, Peter</Author>
> <Year_Published>1987</Year_Published>
> <Company_Name>WADSWORTH PUB CO</Company_Name>
> </Row>
> </Import>
>
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|