Content-Type: multipart/alternative; boundary="_000_D61618F59D72744F88EC2A89FE644FD807E913MAIL2abc_" --_000_D61618F59D72744F88EC2A89FE644FD807E913MAIL2abc_ Content-Type: text/plain; charset="windows-1257" Content-Transfer-Encoding: quoted-printable Hello, We try SaxonEE9.4N\bin for .net application, If I use it on Console application all works fine, But if I use WindowsApplication, web-service, or another .Net Project type = it throw Exception: com.saxonica.bytecode.map.CompiledContextMappingFunction Source: IKVM.Runtime Code: Processor proc =3D new Processor(); IList errors =3D new ArrayList(); XsltCompiler compiler =3D proc.NewXsltCompiler(); try { compiler.BaseUri =3D new Uri("c:\\xslt.xslt"); compiler.SchemaAware =3D false; compiler.ErrorList =3D errors; XsltTransformer trans =3D compiler.Compile(reader).Load(); } catch (StaticError e) { StringBuilder sb =3D new StringBuilder(); sb.AppendLine("XML transformation validation Error:" + e.Me= ssage + "error:"); int cc =3D 1; if (compiler.ErrorList !=3D null && compiler.ErrorList.Coun= t > 0) { foreach (Saxon.Api.StaticError item in compiler.ErrorLi= st) { sb.AppendLine(cc.ToString() + ": " + item.Message); cc++; } } throw new XmlValidationException(sb.ToString()); } catch (Exception e) { if (e.GetType().Name.Contains("TransformerConfigurationExce= ption")) { StringBuilder sb =3D new StringBuilder(); sb.AppendLine("XML transformation validation Error:" + = e.Message + "error:"); int cc =3D 1; if (compiler.ErrorList !=3D null && compiler.ErrorList.= Count > 0) { foreach (Saxon.Api.StaticError item in compiler.Err= orList) { sb.AppendLine(cc.ToString() + ": " + item.Messa= ge); cc++; } } throw new XmlValidationException(sb.ToString()); } else { throw; } } [cid:image002.png@01CD0391.2D8B7D70] Thank you for help=85. Ar cie=F2u, Aleksandrs Ze=EFikovi=E8s [Description: http://www.abcsoftware.lv/logo/logo_z2.jpg] SIA =84ABC software=94 Programm=E7t=E2js T=E2lr.: +371-67082622 Fakss: +371-67082610 E-pasts: Aleksandrs.Zelikovics@abcsoftware.lv --_000_D61618F59D72744F88EC2A89FE644FD807E913MAIL2abc_ Content-Type: text/html; charset="windows-1257" Content-Transfer-Encoding: quoted-printable

Hello,

 

We try SaxonEE9.4N\bin for = .net application,

If I use it on Console appl= ication all works fine,

But if I use WindowsApplica= tion, web-service, or another .Net Project type it throw Exception:<= /span>

 <= /o:p>

com.saxonica= .bytecode.map.CompiledContextMappingFunction

Source: IKVM= .Runtime

 <= /o:p>

Code:

 <= /o:p>

Processor proc =3D new Process= or();

       &n= bsp;    IList errors =3D new ArrayList();

       &n= bsp;    XsltCompiler compiler =3D proc.NewXslt= Compiler();

 

       &n= bsp;    try

       &n= bsp;    {

       &n= bsp;        compiler.BaseUri =3D new Uri("c:\\xslt.xslt");

       &n= bsp;        compiler.SchemaAware =3D false;

       &n= bsp;        compiler.ErrorList =3D error= s;

     =            XsltTransforme= r trans =3D compiler.Compile(reader).Load();

       &n= bsp;    }

       &n= bsp;    catch (Stat= icError e)

        &= nbsp;   {

       &n= bsp;        StringBuilder sb =3D new StringBuilder();

       &n= bsp;        sb.AppendLine("XML transformation validation Error:" = 3; e.Message + "error:");=

 

       &n= bsp;        int cc =3D 1;

       &n= bsp;        if (compiler.ErrorList !=3D null && compiler.ErrorList.Count > 0)

       &n= bsp;        {

       &n= bsp;            foreach (Saxon.Api.StaticError item in compiler.ErrorList)<= /p>

       &n= bsp;            {

       &n= bsp;            = ;    sb.AppendLine(cc.ToString() + ": " + item.Message);

       &n= bsp;            = ;    cc++;

       &n= bsp;            }

       &n= bsp;        }

       &n= bsp;        throw new XmlValidationException(sb.ToString());

 

       &n= bsp;    }

       &n= bsp;    catch (Exce= ption e)

       &n= bsp;    {

       &n= bsp;        if (e.GetType().Name.Contains("TransformerConfigurationException"))

        &= nbsp;       {

       &n= bsp;            StringBuilder sb =3D new StringBuilder();

       &n= bsp;            sb.A= ppendLine("XML transformation validation= Error:" + e.Message + "error:");=

 

       &n= bsp;            int cc =3D 1;

       &n= bsp;            if (compiler.ErrorList !=3D null && compiler.ErrorList.Count > 0)

       &n= bsp;            {

       &n= bsp;            = ;    foreach (Saxon.Api.StaticError item in compiler.ErrorList)<= /p>

       &n= bsp;            = ;    {

       &n= bsp;            = ;        sb.AppendLine(cc.ToString() = 3; ": " + item.Message);

       &n= bsp;            &nbs= p;       cc++;=

       &n= bsp;            = ;    }

       &n= bsp;            }

       &n= bsp;            throw new XmlValidationException(sb.ToString());

       &n= bsp;        }

       &n= bsp;        else

       &n= bsp;        {

       &n= bsp;            throw;

       &n= bsp;        }

       &n= bsp;    }

 <= /o:p>

 

Thank you for help=85.=

 

Ar cie=F2u,
Aleksandrs Ze=EFikovi=E8s

 

SIA= =84ABC software=94
Programm=E7t=E2js
T=E2lr.: +371-67082622 Fakss: +371-67082610=
E-pasts: Aleksandrs.Zeli= kovics@abcsoftware.lv

 

--_000_D61618F59D72744F88EC2A89FE644FD807E913MAIL2abc_--