correctly now using libxml/XPath to update the names of the variables used in ci elements in an equation.