Michael Ludwig <milu71 <at> gmx.de> writes:
> I might be missing something obvious, but in your example, what are the
> "variables that are only available later on in the content"?
> 
> In general, you build the tree in memory, so you have access to
> everything.
> 

You do? I thought that only worked if you stored information in variables.

I'm probably not groking something correctly.

> And it looks to me like your only moving data/@attr2 to file/@attr.
> 


No, I also use the value of an attribute as a file name. So in this case:

<file>
 <data attr1="a" attr2="b3" id="id3">
  <node1>Something</node1>
  <node2>Something</node2>
  <node3>Something</node3>
 </data>
</file>

The value of attr2 is pushed up to the <file> element and the value of id is
used as a parameter to the <redirect:write> rule.

L

Reply via email to