xsl-list
[Top] [All Lists]

Re: [xsl] How to stream-process non-XML text using unparsed-text-lines( ) ?

2014-07-24 12:42:55
mike(_at_)saxonica(_dot_)com wrote:
In Saxon, just use xsl:for-each select="unparsed-text-lines(...)".

Costello, Roger L. costello(_at_)mitre(_dot_)org wrote:
 > I want to stream-process it. I want to count the number of lines.

How would one count the lines without keeping the whole lines in memory, would

<xsl:value-of select="count(unparsed-text-lines('foo.txt'))"/>

do that?
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>