I have been trying to set variables for use on an XPathAPI.execute(...),  I realize that I can get the XPathContext and from there get the VariableStack,  however I’m not exactly sure how to use this?

 

I was hoping to be able to place a variable on the stack though looking through the code this seems to be handled though use of the StylesheetRoot returning a vector then updating the VariableStack?  I’m a little lost on why methods don’t exist in the VariableStack for adding a variable.

 

Is there a way to set up the VariableStack to add a variable programmatically based on the result of an XPath?  In other words creating an XObject and then giving it a QName and placing it on the stack so I can re-use this on the XPathAPI?

 

Cheers


Philip

Reply via email to