There are a few upper limits, although they are not well-documented.  They 
are also so high enough that you are unlikely ever to exceed them.  Off 
the top of my head:

2147483647 unique tokens
2147483647 opcodes, tokens, etc. in the op code map.

Since the opcodes and tokens are all ints, you would be using 2GB of 
memory just to reach the limit of the opcode map.  That would be a very 
large XPath expression, and the actually text representation of it would 
probably exceed physical memory on your machine, even before you compiled 
it.

In general, I think you would run out of memory before you exceeded one of 
these limits.

Dave





"Tahura Chaudhry" <[EMAIL PROTECTED]>
12/09/2004 03:54 PM
Please respond to xalan-c-users
 
        To:     [email protected]
        cc:     (bcc: David N Bertoni/Cambridge/IBM)
        Subject:        size limit on XPath expression?

Is there a upper size limit on the length of an XPath expression that 
xalan-c can evaluate?

thanks,
Tahura Chaudhry




Reply via email to