From commons-user-return-16830-apmail-jakarta-commons-user-archive=jakarta.apache.org@jakarta.apache.org Wed Jul 05 07:25:13 2006 Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 43510 invoked from network); 5 Jul 2006 07:25:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2006 07:25:12 -0000 Received: (qmail 95835 invoked by uid 500); 5 Jul 2006 07:25:07 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 95758 invoked by uid 500); 5 Jul 2006 07:25:06 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 95747 invoked by uid 99); 5 Jul 2006 07:25:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 00:25:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [62.241.4.164] (HELO relay-pt1.poste.it) (62.241.4.164) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 00:25:04 -0700 Received: from postecom37 (192.168.115.103) by relay-pt1.poste.it (7.2.063) id 4485AE290008EC05; Wed, 5 Jul 2006 09:24:41 +0200 Message-ID: <007201c6a004$c2b8c480$6773a8c0@postecom37> From: "Stefano Orselli" To: Cc: "Jakarta Commons Users List" References: Subject: Re: Betwixt: numbered tags for an array Date: Wed, 5 Jul 2006 09:29:33 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi mike, thanks for your mail! and excuse me for the delay in my response. your explanation is very complete, but i have other 2 question for you: 1. if i use your third solution and i have 3 name, i have this xml: Aname Bname Cname how can i get a specific name, for example the second name('Bname')? In your example you write: To get order: /person/name/@order To get name: /person/name but this not find a specific name. But i have some problem in xsl-fo because i have 3 separate field in my pdf output, where i put the first, the second and the third name. 2. with betwixt how can i write the attribute order in an element: for example thanks and ciao Stefano ----- Original Message ----- From: "Mike Sparr - www.goomzee.com" To: "Jakarta Commons Users List" Sent: Wednesday, June 28, 2006 5:41 PM Subject: Re: numbered tags for an array > Here are 3 ways you could form the XML (also potential xpath syntax - > don't > quote me on the attribute lookup w/ @ symbol - it's been a while and you > may > just write element@attribute instead of adding the slash > element/@attribute? > - it should get you close): > > > Aname > > > To get order: /person/@order > To get name: /person/name > > ... > > > Aname > 1 > > > To get order: /person/order > To get name: /person/name > > ... > > > Aname > > > To get order: /person/name/@order > To get name: /person/name > > ------ > > I think it's purely preference on how you design your XML as long as it's > well-formed. You'll have to read between the lines when people give you > examples as there will be typos but you can understand what they meant... > If my syntax above is incorrect, at least you can see what I was trying to > do and make the syntax correct... :) > > Hope this helps! > > > Mike > > > > On 6/28/06 9:22 AM, "Mike Sparr - www.goomzee.com" > wrote: > >> 1 was just a typo and not well-formed XML... The point he >> was >> trying to make is to have some other element with your numbering or you >> could also have an attribute with the name tag: >> >> >> Aname >> >> >> Bname >> >> ... >> >> Cheers, >> >> >> Mike >> >> >> On 6/28/06 9:23 AM, "Stefano Orselli" >> wrote: >> >>> Thank Fabian >>> i don't understand the tag: 1 >>> start with order and finish with name? Which type of variable have this >>> characteristic in java? >>> This type of indentation don't resolva my problem with xsl-fo where i >>> select >>> a single field with: person/name >>> If you have some response write me! >>> Ciao >>> Stefano >>> ----- Original Message ----- >>> From: "Fabian Sergio de Rosa" >>> To: "Jakarta Commons Users List" >>> Sent: Wednesday, June 28, 2006 3:15 PM >>> Subject: Re: numbered tags for an array >>> >>> >>>> i think that's to hard to make >>>> test if you can >>>> >>>> >>>> Aname >>>> 1 >>>> >>>> >>>> Anothername >>>> 2 >>>> >>>> >>>> that's most easy to do and most easy to map and understand. >>>> >>>> >>>> 2006/6/28, Stefano Orselli : >>>>> >>>>> Hi to all! >>>>> I've a problem. >>>>> I transform a bean to an xml file, and after i process this xml file >>>>> with >>>>> fop. >>>>> I've an array (or a collection) but when i create (via betwixt) the >>>>> xml >>>>> file >>>>> i find all the tags for the array value without numeration: >>>>> example >>>>> ...... >>>>> Francesca >>>>> Stefano >>>>> Massimo >>>>> ...... >>>>> but for a lot of reasons i want numbered tags: >>>>> example >>>>> ...... >>>>> Francesca >>>>> Stefano >>>>> Massimo >>>>> ...... >>>>> is there a solution? >>>>> Thanks >>>>> Ciao >>>>> Stefano >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >>>>> For additional commands, e-mail: commons-user-help@jakarta.apache.org >>>>> >>>>> >>>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >>> For additional commands, e-mail: commons-user-help@jakarta.apache.org >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org