commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Sparr - www.goomzee.com" <m...@goomzee.com>
Subject Re: numbered tags for an array
Date Wed, 28 Jun 2006 15:22:52 GMT
<order>1</name> 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:

<person>
  <name order="1">Aname</name>
</person>
<person>
  <name order="2">Bname</name>
</person>
...

Cheers,


Mike


On 6/28/06 9:23 AM, "Stefano Orselli" <stefano.orselli@postecom.it> wrote:

> Thank Fabian
> i don't understand the tag: <order>1</name>
> 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" <fderosa@gmail.com>
> To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
> 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
>> 
>> <person>
>>  <name>Aname</name>
>>  <order>1</name>
>> </person>
>> <person>
>>  <name>Anothername</name>
>>  <order>2</name>
>> </person>
>> 
>> that's most easy to do and most easy to map and understand.
>> 
>> 
>> 2006/6/28, Stefano Orselli <stefano.orselli@postecom.it>:
>>> 
>>> 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
>>> ......
>>> <name>Francesca</name>
>>> <name>Stefano</name>
>>> <name>Massimo</name>
>>> ......
>>> but for a lot of reasons i want numbered tags:
>>> example
>>> ......
>>> <name1>Francesca</name1>
>>> <name2>Stefano</name2>
>>> <name2>Massimo</name2>
>>> ......
>>> 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


Mime
View raw message