You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2014/10/18 06:58:35 UTC
[Bug 57112] New: : ability to transform a nested element
https://issues.apache.org/bugzilla/show_bug.cgi?id=57112
Bug ID: 57112
Summary: <macrodef>: ability to transform a nested element
Product: Ant
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Core tasks
Assignee: notifications@ant.apache.org
Reporter: matt@nightrealms.com
In a <macrodef>, I'd like to be able to take the text and attributes of a
nested element, and use it to construct something entirely different. A simple
example of what I'm thinking about:
<macrodef name="transform_demo">
<transformed_element name="foo" optional="yes"/>
<sequential>
<foo><echo message="@{foo.text}"/></foo>
</sequential>
</macrodef>
A usage:
<transform_demo>
<foo>A</foo>
<foo>B</foo>
<foo>C</foo>
</transform_demo>
The result:
<echo message="A"/>
<echo message="B"/>
<echo message="C"/>
--
You are receiving this mail because:
You are the assignee for the bug.