You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by James Strachan <ja...@yahoo.co.uk> on 2002/11/12 09:50:35 UTC

Re: [jelly] How to use x:attribute

From: "J. Matthew Pryor" <ma...@versata.com>
> Hi,
>
> I know this is not the Jelly list, so please feel free to tell me to
> post elsewhere...

Strictly speaking the Jelly lists are commons-dev and commons-user. No
problem, I'll answer it here.

> This
>
>     <jj:goal name="test-attribute">
>       <x:element name="XX">
>         <x:attribute name="version">1.1.1</x:attribute>
>       </x:element>
>     </jj:goal>
>
> Results in this:
>
> __  __
> |  \/  |__ Jakarta _ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|   v. 1.0-beta-7
>
> D:\data\proj\lynx-tx-vss\fromVSS\workspace5\com.versata.business.logic
>
> test-attribute:
> <XX></XX>
> BUILD SUCCESSFUL
>
> Which is not what I would expect?
> Why didn't my <XX/> element get its attribute ?
>
> Help appreciated

I added a JellyUnit test case to demonstrate your problem and it is indeed a
bug. (It also illustrates a gap in the JellyUnit test cases thats been
closed).

http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/jelly/src/test/org/apa
che/commons/jelly/xml/suite.jelly?rev=HEAD

I've just committed a fix for it to CVS, as well as deploying a new
snapshot, so a fresh rebuild of Maven should have this fix inside it. Thanks
for spotting this!

James
-------
http://radio.weblogs.com/0112098/

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>