[Servingxml-help] <sx:lineNumber/> produces incorrect line-numbers
Brought to you by:
danielaparker
From: Olle Ö. <ol...@co...> - 2010-11-26 15:20:37
|
I'm using servingXML to transform row-oriented text-file records to XML. I've tried using <sx:lineNumber/> to set a lineNumber attribute on some XML-elements, so problems down the processing chain can be tracked back to the input-file. However, the produced line-numbers are incorrect. It seems like servingXML reads and buffers input in blocks (i e not line-oriented), and that <sx:lineNumber/> is substituted for the number of the last record read in to the block-buffer. The result I get in the output is a group of XML-elements all having the same line-number (for example 17), then another group of element all having another line-number (for example 33), etc. I. e. servingXml indicates no output from input record 1-16, 18-32, but in reality it is all there but mapped to the wrong input-records. Is there anyone out there having experienced this? Any known cure? Best Regards! Olle |