Fixed syntax detection for XSL