In the example below I have an xmltask that reads another xml file (abc.xml) looping through all the <sub-element> and grabbing the value of attribute "type". Is there a way for my param "type" to get the value of the property specified in abc.xml? Currently this example would set param "type" = ${TEMP} instead of the "type" = C:\windows\temp
 
Or is there a way to specify the environment variable TEMP_DIR, for example, in abc.xml so that the value of the environment variable would be place in "type"? So "type" = c:\temp.
 
 
<property name="TEMP" value="c:\windows\temp" />
 
<xmltask source="${basedir}/abc.xml">
   <call path="/abc/element[EMAIL PROTECTED]'${element-name}']/sub-element" target="nextTarget">
      <param name="type" path="@type" />
   </call>
</xmltask>
 
 
In abc.xml.....
<abc>
  <element name="element-name" >
    <sub-element type="${TEMP}" />
     ....
  </element>
</abc>
 
Environment Variable
TEMP_DIR=c:\temp

Reply via email to