Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the range of count attribute in xslt?

Tags:

xml

xslt

xslt-2.0

I am using one xslt file for count the number of elements in an XML file that have a particular value (to verify uniqueness) and stored in xsl variable name. This xml file is created programatically and value of the number of the elements sometimes may exceed 1 million.

Due to this high level range, I am little afraid about range limit of xsl:variable or count attribute.

I don’t know whether xsl:variable or count attribute has limited range (Starting range and ending range) or not?

like image 417
Saravanan Avatar asked Dec 12 '22 11:12

Saravanan


1 Answers

With most XSLT processors, you're likely to run out of memory for storing the XML document long before you exceed the limit of the count() function. About 1Gb is about the maximum you're likely to be able to handle, and that's unlikely to be more than about 10M nodes.

like image 150
Michael Kay Avatar answered Dec 24 '22 14:12

Michael Kay