ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent P." <work...@yahoo.fr>
Subject Re: XML property
Date Tue, 25 Nov 2003 12:25:46 GMT
I saw the previous request of last week before sending mine. I thought 
there was another way to do it without using XSLT .
So I will use XSLT :-) .
Thank's for your help.

Regards,
Laurent Picandet

Morten S. Mortensen wrote:

>...Just saw the referred answer from last week, because I miss the ability to read lists
too - would be very, very usable, if lists could be picked from somewhere inside a XML-config-something-file
and converted *without* using XSLT.
>
>Something to consider for a future version of "xmlproperty" - or a custom task, which
I do.
>
>Regarding a custom task, I do consider implementing a antcall/foreach-variant, which should
corresponds to a sequential, SAX-like traversal, since this could partly or fully cope with
more complex elements not just having a simple body. It is a thought.
>
>Regards,
>Morten Sabroe Mortensen
>
>
>-----Original Message-----
>From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
>Sent: 25. november 2003 09:01
>To: user@ant.apache.org
>Subject: RE: XML property
>
>
>That was asked (and answered) last week :-)
>http://marc.theaimsgroup.com/?l=ant-user&m=106923753023384&w=2
>
>
>Jan 
>
>  
>
>>-----Original Message-----
>>From: Laurent P. [mailto:worklap@yahoo.fr]
>>Sent: Tuesday, November 25, 2003 8:54 AM
>>To: Ant Users List
>>Subject: XML property
>>
>>
>>Hello,
>>
>>I 'm using Ant 1.5.3 under WSAD 5.1.
>>I would like to access properties list via <xmlproperty>.
>>
>>My XML file :
>><conf>
>>   <utility>
>>      <project>a</project>
>>      <project>b</project>
>>      <project>b</project>
>>   </utility>
>></conf>
>>
>>I would like to access all <project> properties (a, b, c) as a 
>>coma-separed list (or any list) to iterate on it with <foreach>.
>>
>><xmlproperty file="file.xml"/>
>><echo message="${conf.utility.project}"/> ==> [echo] a
>>I have only the first child of <utility>.
>>
>>I tried with :
>><conf>
>>   <utility>
>>      <project name="aa">a</project>
>>      <project name="bb">b</project>
>>      <project name="cc">c</project>
>>   </utility>
>></conf>
>>but I had the same result.
>>
>>Any idea?
>>
>>Thank's for advance.
>>Laurent
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message