You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/10/05 18:06:47 UTC

DO NOT REPLY [Bug 3995] New: - Request to abstract variable usage in XPath.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3995>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3995

Request to abstract variable usage in XPath.

           Summary: Request to abstract variable usage in XPath.
           Product: XalanJ2
           Version: 2.2.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: org.apache.xpath
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: andy_depue@yahoo.com


Variable usage in XPath is currently hardcoded for specifically how XSL uses 
variables.  VariableStack currently exposes an API that is modeled after 
traditional program stacks and stack frames.  Because of the low level 
impelementation of VariableStack, it has also been declared 'final', making any 
extension impossible.  While this is good for XSL, it is incompatible to any 
alternate implementation of variables/VariableStack.
What we need is a way to "plug in" our own implementation of variables for 
XPath.  This would require variable usage (possibly VariableStack) to be 
abstracted out of its current low level form.  While it may not be as 
effecient, I'm sure an implementation could be presented that would offer very 
close performance.