#1037 XSLT 2.0 Issue

v9.2
closed
Michael Kay
.NET API (34)
5
2014-01-03
2010-02-04
Hardy Wang
No

I have a Altova MapForce project, and I generated XSLT 2.0 from this project. When I load it from Saxon .net API I got following error message while executing (last statement below):
this.processor = new Processor();
this.compiler = processor.NewXsltCompiler();
XmlTextReader xslt = new XmlTextReader(this.xsltFile);
this.transformer = compiler.Compile(xslt).Load();

Error message is:
"The type xs:NMTOKEN is not recognized by a Basic XSLT Processor."

If I use Altova XmlSpy to use the exact XSLT I have no problem to transform Xml.

Discussion

  • Michael Kay
    Michael Kay
    2010-02-05

    Please do not raise support requests on the bug tracker until it is confirmed that they actually are bugs.

    Saxon.B and Saxon-HE implement the "basic conformance level" of the XSLT 2.0 specification, which does not support types such as xs:NMTOKEN. To use these types, you need Saxon-PE or Saxon-EE.