My C# codes
Processor xsltProcessor = new Processor();
XdmNode input = xsltProcessor.NewDocumentBuilder().Wrap(doc);
XsltTransformer transformer = xsltProcessor.NewXsltCompiler().Compile(new Uri(HttpContext.Current.Server.MapPath(xsltPath))).Load();
transformer.InitialContextNode = input;
Serializer serializer = new Serializer();
MemoryStream stream = new MemoryStream();
stream.Position = 0;
StreamReader read = new StreamReader(stream);
<xsl:output method="html" indent="yes"/>
<xsl:value-of select="replace(id, '1', 'bir')"/>
transformer.Run(serializer); line is throwing error : Index was outside bounds of array.
Thanks for reporting it. For future reference, the preferred place to report Saxon problems is http://saxonica.plan.io/. Could you confirm which Saxon version you are using?
I'm using SaxonHE 9.4 for .net same error giving SaxonPE 9.4 for .net
Thanks for reporting the problem you have found.
A bug issue has been created, please see: https://saxonica.plan.io/issues/1645
I have followed through the setup you described in the thread, however I have been unable to reproduce the error. Please may you provide me with the specific version number of Saxon 9.4 that you are using. The current release is Saxon 126.96.36.199. Also any details of your environment, such as .Net version would be useful. Thanks
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.