Hi, I have a file that looks like this:
<file> <data attr1="a" attr2="b1" id="id1"> <node1>Something</node1> <node2>Something</node2> <node3>Something</node3> </data> <data attr1="a" attr2="b2" id="id2"> <node1>Something</node1> <node2>Something</node2> <node3>Something</node3> </data> <data attr1="a" attr2="b3" id="id3"> <node1>Something</node1> <node2>Something</node2> <node3>Something</node3> </data> </file> I am trying to create a transformation that would create three files (in this case) named: id1.xml, id2.xml, and id3.xml. The content would be, respectively: <file attr="b1"> <data attr1="a" id="id1"> <node1>Something</node1> <node2>Something</node2> <node3>Something</node3> </data> </file> <file attr="b2"> <data attr1="a" id="id2"> <node1>Something</node1> <node2>Something</node2> <node3>Something</node3> </data> </file> <file attr="b3"> <data attr1="a" id="id3"> <node1>Something</node1> <node2>Something</node2> <node3>Something</node3> </data> </file> I know how to create multiple files with xalan 2, I (think I) know how to prune attributes. What I don't know how to do is to delay the actual writing of the document so I can have access to variables that are only available later on in the content. Is this possible? If so, how? If not, what are my options? Thanks, L