I have an XML file:
<root>
<Person ID="123">
<Name @name="JohnDoe"/>
<OtherInfo>
......
</OtherInfo>
</Person>
<Person ID="456">
<Name @name="JaneDoe"/>
<OtherInfo>
......
</OtherInfo>
</Person>
<Person ID="789">
<Name @name="JohnDoe"/>
<OtherInfo>
......
</OtherInfo>
</Person>
</root>
I want a single XSLT file to output two files:
File1:
<root>
<Person ID="123">
<OtherInfo>
......
</OtherInfo>
</Person>
<Person ID="456">
<OtherInfo>
......
</OtherInfo>
</Person>
<Person ID="789">
<OtherInfo>
......
</OtherInfo>
</Person>
</root>
File2: JohnDoe, JaneDoe, JohnDoe
I want to be able to do this in a single pass through the original XML file.