I'm sure this is a common problem .. well I'm hoping it is !.
We've got an extract of data which comes out of an access database to invoice customers. Currently we print them but now the customer has the ability to receive via xml.
The structure of the file (after conversion to XML) is roughly
What I wanted to do was use the for-each , so that is processes the lines within the header etc. If I map the header -> header using for-each the results are as I expect, for each invoice header there's a corresponding output. As soon as I add the for-each to the lines, Stylus studio seems to go bananas and use 100% CPU and appears to hang.
Cutting down the number of input records I can see that it maps every line for every invoice, so for each invoice there's for example 20 lines !.
Perhaps I'm not understanding how it's supposed to work or the input structure isn't correct ?.
Either way I'm stuck and I'd like some help please !!
OK I've downloaded the latest build thanks, yes it works (well it does the transform) , but i'm not getting the results im expecting.
I think I have more of a problem in my source XML data (which is converted from a delimeted text file).
Basically for each <invhdr> record there may be one or more <invlin> records, but as you can see the input xml data doesn't really contain that structure, it's a 'classical' header & detail records type layout.
What I can't see how to do in the 'convert to xml' is how to associate a 'header / detail' relationship, if my input data is just simply rows of text, how can i tell Style Studio that an <invlin> record is a child of <invhdr> ?.
I've attached my input data, converter to this message.