XPathConfig migration

Starting with version 2.30, the configuration provided in XML format to the GWC has changed; you have to adapt all of your customized snippet files containing XPathConfig expressions. Only the XML configuration needed by the GWC is loaded, so all the XPathConfig expressions must be simplified as follows:

  • Remove APPLICATION node
    XPathConfig('/APPLICATION/TIMEOUT/USER_AGENT/text()')

    to

    XPathConfig('/OUTPUT/MAP/TIMEOUT/USER_AGENT/text()')
  • Remove DUA Id attribute
    XPathConfig('APPLICATION/OUTPUT/MAP[@Id='DUA_AJAX']/RENDERING/MIME_TYPE/text()')

    to

    XPathConfig('/OUTPUT/MAP/RENDERING/MIME_TYPE/text()')

It is no longer possible to access all XPATH with function XPathConfig(). We can only access the node OUTPUT and its descendants.