Sorry for posting this here, but I have searched all other places I
could find

If I have an XML snippet like this :
<plugin> 
   <requires>
      <import plugin="com.ibm.etools.commonedit"/>
      <import plugin="com.ibm.etools.ejbdeploy"/>
   </requires>
</plugin>

I am trying the following to (for now) print out a list with the value
of each plugin attribute of each import element, but I get an empty
string
 
    <goal name="copy-jars">
        <x:parse var="plugin-xml" xml="file:./plugin.xml"/>
        <echo message="${plugin-xml}"/> 
        <x:forEach select="$plugin-xml/plugin/requires/import"
var="import">
            <x:set var="plugin" select="$import/@plugin"/>
            <j:set var="plugin-value" value="${plugin.getValue()}"/>
            <echo message="Plugin is ${plugin-value}"/> 
        </x:forEach>
    </goal>

Please excuse the Jelly newbieness, but can anyone help me out ?

Thanks,
Matthew



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

Reply via email to