Re: Output flat file results 2 nodes at a time?
(ah, I see that David beat me to it with a much shorter approach ;)
That's a beauty!
Reading it, I much like the shortcut of deatil/po(if ...) etc. I then hoped, that the if-statement could be replaced with a predicate, but that wouldn't work, as the position() will then be about the sequence and not the element, like here:
detail/po/(('*', ' REC2*')[position() mod 2 + 1], string())
and even if it worked, it'd be questionable whether it'd be clearer than the if-syntax.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format