[lnst] XmlPreprocessor: Modify template detection