Cannot execute xsd.exe on xslt.xsd

435 Views Asked by At

Visual Studio provides a schema definition for XSLT under "C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas\xslt.xsd".

However, when trying to generate C# classes based on the .xsd

xsd "C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas\xslt.xsd" /classes

the tool only generates an error message saying

Error: Error generating classes for schema 'C:\Program Files\Microsoft Visual Studio 10_0\Xml\Schemas\xslt'.

What steps or modifications are necessary to run the command successfully? Or, has this been done before, and are the results available on the web?

(Yes, I know, this answer suggests writing my own classes)

1

There are 1 best solutions below

0
On BEST ANSWER

I finally solved the problem by incrementally editing the xsd file and running xsd.exe on the modified files. See my blog for details how to proceed.