Re: jelly:xml tag usage

2004-09-20 Thread dan tran
Here you go..




  
  




  

  
  
  
  
  
  ${version.setValue(newVersionStr)}
  
  
  
  ${version}  
  
  
   
  



-Dan


On Mon, 20 Sep 2004 21:28:36 +1000, Dion Gillard <[EMAIL PROTECTED]> wrote:
> Can you give us a sample to test?
> 
> On Fri, 17 Sep 2004 19:28:07 -0700, dan tran <[EMAIL PROTECTED]> wrote:
> >
> >
> > I did try that way as well, and version attribute does not change.
> >
> > It may be a bug then.
> >
> > -D
> >
> > On Sat, 18 Sep 2004 11:34:13 +1000, Dion Gillard <[EMAIL PROTECTED]> wrote:
> > > On Fri, 17 Sep 2004 17:32:51 -0700, dan tran <[EMAIL PROTECTED]> wrote:
> > > > I am getting closer with this code:
> > > >
> > > > 
> > > >   
> > > >   
> > > >> > > select="$doc/configuration/configuration-id/@version" />
> > > >   
> > > >   
> > > >   ${version.setValue('${newVersionStr}')}
> > >
> > > The above line is wrong.
> > >
> > > it should be:
> > >   ${version.setValue(newVersionStr)}
> > >
> > > quoted stuff is a literal string.
> > > --
> > > http://www.multitask.com.au/people/dion/
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> http://www.multitask.com.au/people/dion/
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jelly:xml tag usage

2004-09-20 Thread Dion Gillard
Can you give us a sample to test?


On Fri, 17 Sep 2004 19:28:07 -0700, dan tran <[EMAIL PROTECTED]> wrote:
> 
> 
> I did try that way as well, and version attribute does not change.
> 
> It may be a bug then.
> 
> -D
> 
> On Sat, 18 Sep 2004 11:34:13 +1000, Dion Gillard <[EMAIL PROTECTED]> wrote:
> > On Fri, 17 Sep 2004 17:32:51 -0700, dan tran <[EMAIL PROTECTED]> wrote:
> > > I am getting closer with this code:
> > >
> > > 
> > >   
> > >   
> > >> > select="$doc/configuration/configuration-id/@version" />
> > >   
> > >   
> > >   ${version.setValue('${newVersionStr}')}
> >
> > The above line is wrong.
> >
> > it should be:
> >   ${version.setValue(newVersionStr)}
> >
> > quoted stuff is a literal string.
> > --
> > http://www.multitask.com.au/people/dion/
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-- 
http://www.multitask.com.au/people/dion/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jelly:xml tag usage

2004-09-17 Thread dan tran
I did try that way as well, and version attribute does not change.

It may be a bug then.

-D


On Sat, 18 Sep 2004 11:34:13 +1000, Dion Gillard <[EMAIL PROTECTED]> wrote:
> On Fri, 17 Sep 2004 17:32:51 -0700, dan tran <[EMAIL PROTECTED]> wrote:
> > I am getting closer with this code:
> >
> > 
> >   
> >   
> >> select="$doc/configuration/configuration-id/@version" />
> >   
> >   
> >   ${version.setValue('${newVersionStr}')}
> 
> The above line is wrong.
> 
> it should be:
>   ${version.setValue(newVersionStr)}
> 
> quoted stuff is a literal string.
> --
> http://www.multitask.com.au/people/dion/
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jelly:xml tag usage

2004-09-17 Thread Dion Gillard
On Fri, 17 Sep 2004 17:32:51 -0700, dan tran <[EMAIL PROTECTED]> wrote:
> I am getting closer with this code:
> 
> 
>   
>   
>select="$doc/configuration/configuration-id/@version" />
>   
>   
>   ${version.setValue('${newVersionStr}')}

The above line is wrong.

it should be:
   ${version.setValue(newVersionStr)}

quoted stuff is a literal string.
-- 
http://www.multitask.com.au/people/dion/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jelly:xml tag usage

2004-09-17 Thread dan tran
I am getting closer with this code:


  
  
  
  
  
  ${version.setValue('${newVersionStr}')}
  
  ${version}  
  
  
   


The ant:echo statement shows to correct increament, but the 
x:copyOf shows my attribute as version=${newVersionStr}

What a bumper.

Oh well, I am going to try your xslt/jsl option.

-D


On Sat, 18 Sep 2004 02:12:53 +0200, Incze Lajos <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 17, 2004 at 04:00:08PM -0700, dan tran wrote:
> > Ok, here is what i want.
> >
> > I need to change a attribute in a element in doc and then copy that
> > doc to another file. Sofar I am able to locate the attribute but dont
> > know how to change it.
> >
> > Here is my code
> >
> > 
> >   
> >   
> >   
> >   ${version.setValue('2')}
> >   ${version}  
> >   
> > 
> >
> >
> > Dont think my method of alter the attribute working.
> >
> > Any help is greatly appreciated.
> >
> > -Dan
> 
> You simply changed the value of a variable extracted from
> and independent of your document. To change the version value
> in your output document, you have to _transform_ the original
> document with xsl or jsl.
> 
> incze
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jelly:xml tag usage

2004-09-17 Thread Incze Lajos
On Fri, Sep 17, 2004 at 04:00:08PM -0700, dan tran wrote:
> Ok, here is what i want.  
> 
> I need to change a attribute in a element in doc and then copy that
> doc to another file. Sofar I am able to locate the attribute but dont
> know how to change it.
> 
> Here is my code
> 
> 
>   
>   
>   
>   ${version.setValue('2')}
>   ${version}  
>   
> 
> 
> 
> Dont think my method of alter the attribute working.  
> 
> Any help is greatly appreciated.
> 
> -Dan

You simply changed the value of a variable extracted from
and independent of your document. To change the version value
in your output document, you have to _transform_ the original
document with xsl or jsl.

incze

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jelly:xml tag usage

2004-09-17 Thread dan tran
Ok, here is what i want.  

I need to change a attribute in a element in doc and then copy that
doc to another file. Sofar I am able to locate the attribute but dont
know how to change it.

Here is my code


  
  
  
  ${version.setValue('2')}
  ${version}  
  



Dont think my method of alter the attribute working.  

Any help is greatly appreciated.

-Dan

On Fri, 17 Sep 2004 08:30:31 -0700, dan tran <[EMAIL PROTECTED]> wrote:
> Thanks martijn, scm plugin.jelly does not use jelly:xml tag ;-)
> 
> -D
> 
> 
> 
> 
> On Fri, 17 Sep 2004 17:01:30 +0200, Martijn Dashorst
> <[EMAIL PROTECTED]> wrote:
> > dan tran wrote:
> >
> > >Michele,
> > >
> > >The ear's plugin.jelly is excellent.   The code shows how to create a brand new
> > >xml file.
> > >
> > >Do you have an example where I can open up a existent xml doc, trarverse
> > >to the desired element, and then insert bunch of sub elements.  I am not an
> > >xml novice yet(very newbie), so any example code or pointer to
> > >examnple is very great.
> > >
> > >
> > I think the scm:prepare-release goal does what you want: it inserts into
> > the project.xml the newly created version under 
> >
> > Martijn
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jelly:xml tag usage

2004-09-17 Thread dan tran
Thanks martijn, scm plugin.jelly does not use jelly:xml tag ;-)

-D


On Fri, 17 Sep 2004 17:01:30 +0200, Martijn Dashorst
<[EMAIL PROTECTED]> wrote:
> dan tran wrote:
> 
> >Michele,
> >
> >The ear's plugin.jelly is excellent.   The code shows how to create a brand new
> >xml file.
> >
> >Do you have an example where I can open up a existent xml doc, trarverse
> >to the desired element, and then insert bunch of sub elements.  I am not an
> >xml novice yet(very newbie), so any example code or pointer to
> >examnple is very great.
> >
> >
> I think the scm:prepare-release goal does what you want: it inserts into
> the project.xml the newly created version under 
> 
> Martijn
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jelly:xml tag usage

2004-09-17 Thread Martijn Dashorst
dan tran wrote:
Michele,
The ear's plugin.jelly is excellent.   The code shows how to create a brand new
xml file.  

Do you have an example where I can open up a existent xml doc, trarverse 
to the desired element, and then insert bunch of sub elements.  I am not an
xml novice yet(very newbie), so any example code or pointer to
examnple is very great.
 

I think the scm:prepare-release goal does what you want: it inserts into 
the project.xml the newly created version under 

Martijn
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: jelly:xml tag usage

2004-09-17 Thread dan tran
Michele,

The ear's plugin.jelly is excellent.   The code shows how to create a brand new
xml file.  

Do you have an example where I can open up a existent xml doc, trarverse 
to the desired element, and then insert bunch of sub elements.  I am not an
xml novice yet(very newbie), so any example code or pointer to
examnple is very great.


Thanks

-Dan




On Fri, 17 Sep 2004 11:44:21 +0200, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hello Dan,
> 
> you can give a look at the plugin.jelly of the ear, specifically when it
> generates the application.xml see goal generate-ear-descriptor
> 
> Michele
> 
> |-+>
> | |   dan tran |
> | |   <[EMAIL PROTECTED]|
> | |   m>   |
> | ||
> | ||
> | |   17/09/2004 08:25 |
> | |   Please respond to|
> | |   "Maven Users |
> | |   List"|
> | ||
> |-+>
>  
> >--|
>  |   
>|
>  |   
>|
>  |   
>|
>  |   
>|
>  |   
>|
>  |To: Maven Users List <[EMAIL 
> PROTECTED]> |
>  |cc: (bcc: Michele Forte/SwissRe)   
>|
>  |bcc:        Michele Forte/SwissRe  
>|
>  |Subject:jelly:xml tag usage
>|
>  
> >--|
> 
> 
> Hello, I need an example of inserting a bunch of elements into a xml doc
> using
> jelly:xml tag.  any pointers to any any example is greatly appreciated.
> 
> -D
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> This e-mail, including attachments, is intended for the person(s) or
> company named and may contain confidential and/or legally privileged
> information. Unauthorized disclosure, copying or use of this information
> may be unlawful and is prohibited. If you are not the intended recipient,
> please delete this message and notify the sender
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jelly:xml tag usage

2004-09-17 Thread Michele_Forte
Hello Dan,

you can give a look at the plugin.jelly of the ear, specifically when it
generates the application.xml see goal generate-ear-descriptor

Michele


|-+>
| |   dan tran |
| |   <[EMAIL PROTECTED]|
| |   m>   |
| ||
| ||
| |   17/09/2004 08:25 |
| |   Please respond to|
| |   "Maven Users |
| |   List"|
| ||
|-+>
  
>--|
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |To: Maven Users List <[EMAIL 
PROTECTED]> |
  |cc: (bcc: Michele Forte/SwissRe)
  |
  |bcc:Michele Forte/SwissRe   
  |
  |Subject:        jelly:xml tag usage 
  |
  
>--|




Hello, I need an example of inserting a bunch of elements into a xml doc
using
jelly:xml tag.  any pointers to any any example is greatly appreciated.

-D

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This e-mail, including attachments, is intended for the person(s) or
company named and may contain confidential and/or legally privileged
information. Unauthorized disclosure, copying or use of this information
may be unlawful and is prohibited. If you are not the intended recipient,
please delete this message and notify the sender


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jelly:xml tag usage

2004-09-17 Thread dan tran
Brett,   I found one in jbuilder plugin close enough to get me started.



On Fri, 17 Sep 2004 16:26:35 +1000, Brett Porter <[EMAIL PROTECTED]> wrote:
> Is there anything in the jelly documentation, or existing Maven plugins?
> 
> 
> 
> 
> On Thu, 16 Sep 2004 23:25:11 -0700, dan tran <[EMAIL PROTECTED]> wrote:
> > Hello, I need an example of inserting a bunch of elements into a xml doc using
> > jelly:xml tag.  any pointers to any any example is greatly appreciated.
> >
> > -D
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jelly:xml tag usage

2004-09-16 Thread Brett Porter
Is there anything in the jelly documentation, or existing Maven plugins?


On Thu, 16 Sep 2004 23:25:11 -0700, dan tran <[EMAIL PROTECTED]> wrote:
> Hello, I need an example of inserting a bunch of elements into a xml doc using
> jelly:xml tag.  any pointers to any any example is greatly appreciated.
> 
> -D
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jelly:xml tag usage

2004-09-16 Thread dan tran
Hello, I need an example of inserting a bunch of elements into a xml doc using
jelly:xml tag.  any pointers to any any example is greatly appreciated.

-D

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]