Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 90291 invoked from network); 2 Mar 2005 17:04:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Mar 2005 17:04:13 -0000 Received: (qmail 90075 invoked by uid 500); 2 Mar 2005 17:03:53 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 89988 invoked by uid 500); 2 Mar 2005 17:03:52 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 89925 invoked by uid 99); 2 Mar 2005 17:03:52 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from cc0eb005.schwab.com (HELO cc0eb005.schwab.com) (162.93.253.117) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Mar 2005 09:03:49 -0800 Received: from s0743cdc.schwab.com (s0743cdc.schwab.com [162.93.239.70]) by cc0eb005.schwab.com (Switch-3.1.2/Switch-3.1.0) with ESMTP id j22H3lS3019811 for ; Wed, 2 Mar 2005 12:03:47 -0500 Received: (from root@localhost) by sendmail.cf s0743cdc id j22H3l1P022571 for users@cocoon.apache.org; Wed, 2 Mar 2005 12:03:47 -0500 Received: ( Schwab Email ) by copymail.cf s0743cdc with SMTP id j22H3l4n022564; for ; Wed, 2 Mar 2005 12:03:47 -0500 Received: From n2121pmx.nt.schwab.com ([10.100.85.232]) by n1110smx.nt.schwab.com (WebShield SMTP v4.5 MR1a P0803.345); id 1109783028108; Wed, 2 Mar 2005 09:03:48 -0800 Received: by n2121pmx.nt.schwab.com with Internet Mail Service (5.5.2657.72) id ; Wed, 2 Mar 2005 10:03:46 -0700 Message-ID: From: "Gawde, Kiran" To: users@cocoon.apache.org Subject: RE: parsing xml code Date: Wed, 2 Mar 2005 10:03:22 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N You may want to apply two transforms first doing following: And the second as it is given in the previous email. -Kiran (Object Edge Inc) -----Original Message----- From: news [mailto:news@sea.gmane.org] On Behalf Of Vlad Golodov Sent: Monday, February 28, 2005 3:26 AM To: users@cocoon.apache.org Subject: Re: parsing xml code Derek, that was very helpful. It would work if there wouldn't be one moment. I noticed that actually all the data in DB is in such format: <contact> <name>Chris</name> <surname>Lautre</surname> <address>Plomipuu 16</address> <email>clautre@datanet.ee</email> <phone></phone> </contact> Is it possible to convert it to the normal tags and then apply your method? Vlad "Derek Hohls" wrote in message news:s223068b.097@cs-emo.csir.co.za... > You may need to add in a namespace to the file below to make it a > valid XML file e.g. > > xsi:type="ns2:DBConnection1_ComponentObjectUser" > xmlns:xsi="http://apache.org/cocoon/xsi/1.0"> > ... > > Then the following works (under my Cocoon 2.1.5): > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:xsi="http://apache.org/cocoon/xsi/1.0" > > > > > > > > > > > > , > > > > > > > > > HTH. > > > >>> vlad@top.ee 2005/02/28 11:41:10 AM >>> > Hi All, > > I have a web service, which returns me code like that: > > ---------------------------------------------------------------------- > ---- -- > -- > > Chris > Lautre
Plomipuu 16
> clautre@datanet.ee
> Vlad Golodov
Paasiku 22 - > 155
vlad@top.ee +37256639190 >
> 97 > Address Book For > Other > ADDRESSBOOK > xsi:type="xsd:dateTime">2005-02-21T11:46:50.000Z > > New Address Book For > Other > 11 > > clautre >
> ---------------------------------------------------------------------- > ---- -- > -- > > In xslt I need to parse componentClob and iterate through the contact > tags. > > That code gives me the content of the componentClob: > > ---------------------------------------------------------------------- > ---- -- > - > > > > ---------------------------------------------------------------------- > ---- -- > - > > I was trying to iterate through the content of clob, but all was > vainly. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org