I am getting different SVRL result when I use to stream with dummy URI it doesn't return the correct SVRL and if I provide actual URI it return correct SVRL in Saxon 9.8.3 version.
Processor processor = new Processor();
// Load the source document
var documentbuilder = processor.NewDocumentBuilder();
documentbuilder.BaseUri = new Uri("http://dummy.base.uri/");
XdmNode input = documentbuilder.Build(xmlstream);
// Create a transformer for the stylesheet.
var compiler = processor.NewXsltCompiler();
compiler.ErrorList = new System.Collections.Generic.List<Exception>();
XsltTransformer transformer = compiler.Compile(xsltStream).Load();
transformer.InitialContextNode = input;
Kindly advise if I am making any mistake. The only difference is the correct one returns below and incorrect SVRL skip it.
<svrl:failed-assert test=". != ''" id="EHF-COMMON-R001" flag="fatal" location="/*:CreditNote[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2'][1]/*:CreditNoteLine[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2'][1]/*:Note[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2'][1]">
<svrl:text>Document MUST not contain empty elements.</svrl:text>
</svrl:failed-assert>