art:with-node
jart.handlers.control.With
Beschreibung
art:with-node erlaubt das Ansprechen von XML-Knoten mittels XPath von jeder Stelle im Code aus.
Attribute
@ select (erforderlich)
Das "select"-Attribut legt fest welche XML-Knoten selektiert werden sollen.
Beispiele
<art:plain name="data"> <art:for from="1" to="3" increment="1"> <art:plain name="node" /> </art:for> <art:with-node select="/*/node"> <art:attribute value="Hello World!" name="attr" /> </art:with-node> </art:plain> Ergebnis (XML): <data> <node attr="Hello World!" /> <node attr="Hello World!" /> <node attr="Hello World!" /> </data>