Yes, I know about the result-document statement, but I don't know how to use it to do the transformation in a single pass. What I meant from my previous question was that, if a had to separate my XML input in ten different files, I'd have to write ten "for" statements, one for each class I had in mind, generating one file at a time. What I'd like to have is some way to build multiple files at the same time; for instance, while iterating through the many elements, test "if this element is of the type A, it goes into file A.xml; if it is of type B, it goes into B.xml..." and so on.
|