Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 95435 invoked from network); 10 Aug 2000 21:51:04 -0000 Received: from smtpde02.sap-ag.de (194.39.131.53) by locus.apache.org with SMTP; 10 Aug 2000 21:51:04 -0000 Received: from sap-ag.de ([194.39.131.3]) by smtpde02.sap-ag.de (out) with ESMTP id XAA01860 for ; Thu, 10 Aug 2000 23:46:38 +0200 (MESZ) Received: from dewdfx1i2.wdf.sap-ag.de (dewdfx1i2.wdf.sap-ag.de [155.56.4.133]) by sap-ag.de (8.8.8/8.8.8) with ESMTP id XAA18194 for ; Thu, 10 Aug 2000 23:50:35 +0200 (MET DST) Received: by dewdfx1i2 with Internet Mail Service (5.5.2650.21) id ; Thu, 10 Aug 2000 23:50:39 +0200 Message-ID: <2BC52EF1968FD211B3AB00805FE6FE8203D22E36@uspalx21> From: "Spychalski, Frank" To: "'cocoon-users@xml.apache.org'" Subject: RE: (How) can I achieve this? Date: Thu, 10 Aug 2000 23:50:38 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N ->-----Original Message----- ->From: Yao, Di [mailto:dyao@profilesys.com] ->Subject: RE: (How) can I achieve this? -> -> ->Thanks frank. The reason I need "something like that" is: ->I want to group the records with parentid=x under the record ->with id=x. ->The records in the xml file are not grouped. ->My goal is to get something like: ->Record with parentid 0 and id=x1 -> Record with parentid=x1 id=y1 -> Record with parentid=x1 id=y2 -> .... ->Record with parentid 0 and id=x2 -> Record with parentid=x2 id=z1 -> Record with parentid=x2 id=z2 -> ..... ->........... ->Note there are only two levels, no more. ->There must be better way to achieve this, I am a new comer to ->cocoon and ->xsl. could you help me? ->Thanks a lot -> ->yaodi Hi, if you can change the xml file (if you can influence you input format...) into: content other content other content other content it'll be much easier (and much more 'xmlish' :-)) ...... bye Frank - Frank Spychalski Research Engineer SAP Labs, Palo Alto frank.spychalski@sap.com