I use a mode (XHTML) to select the XHTML table so that this template does not interfere with the operation of the DocBook template, which has the same match, but lower import precedence.
The cache scope contributed by the portlet window always hasprecedence over the value contributed by the portlet definition, regardless of which is the higher or lower value.