You asked the same question on the saxon-help forum on SourceForge and I have answered it there.


Michael Kay

From: Shankar Arunachalam []
Sent: 28 September 2009 06:55
Subject: [saxon] Help needed with Invalid QName {} error - Saxon HE .NET API

Hi all,
I am trying to use an xsl transform developed as a W3C effort to convert from WSDL 1.1 to WSDL 2.0.
The web site is at
The xsl itself is available at
They provide a test form which I used to convert a WSDL:
The conversion went fine. Then I tried the same in code and I get an Invalid QName {} error (Error code: FOCA0002).
My code is:
Processor processor = new Processor();

XdmNode input = processor.NewDocumentBuilder().Build(new Uri(""));

XsltTransformer transformer = processor.NewXsltCompiler().Compile(new Uri("")).Load();

transformer.InitialContextNode = input;

transformer.BaseOutputUri = new Uri("");

Serializer serializer = new Serializer();

StringBuilder sb = new StringBuilder();

serializer.SetOutputWriter(new StringWriter(sb));


I tested the same code replacing the wsdl and xsl with some simple samples provided in saxon documentation. The code worked fine. So, the issue must be with the wsdl or xsl. Then I replaced the xsl alone using a dummy xsl and the code executed fine. So, now I am down to the xsl provided by W3C. I am not able to figure out what would possibly create this error. It would be great if someone could help me solve this problem or try to reproduce the error.