TIP 2 For analysing your Xpath expression and variables use the XSLT debugger beginning by inserting breakpoints.