How to Generate C# Code for XQuery

To generate C# code for XQuery:
1. Open the XQuery document for which you want to generate C# code.
2. Define at least one scenario for the XQuery document for which you want to generate C# code. The scenario must use the Saxon processor. See Scenario Properties Used for Generating Code for more information.
3. Select the scenario for which you want to generate C# code.
4. Close the Scenario Properties dialog box.
5. Select XQuery > Generate C# Code from the Stylus Studio menu.

The Generate C# Code dialog box appears.

Figure 363. C# Code Generation Dialog Box

6. Specify the settings you want for the target directory, namespace and class names, and so on. See C# Code Generation Settings if you need help with this step.
7. Click OK.

Stylus Studio generates C# code for the XQuery. When the code generation is complete, the resulting file (classname .cs) is opened in a third-party editor if you chose the Open the generated file option.

XSLT Debugger

Stylus Studio's XSLT debugger - a requirement for building bug-free XSLT stylesheets and XML data transformation applications. Stylus Studio's XSLT debugger gives you complete visibility and control over the XSLT transformation process.

Web Service Servers

Stylus Studio's Web Services tools support development and testing of Web service applications on the industry's leading Web Service Servers including Apache AXIS, Mirosoft SOAP Client Toolkit and Microsoft .NET Server.

Open XSLT Architecture

Learn how Stylus Studio's Open XSLT Architecture enables you to use any of the popular industry-standard XSLT processors (like Saxon, Xalan-J, MSXML, Microsoft .NET, and others) for all your XSLT development tasks.

XML-DEV Blog

Join the XML Development discussion at XML-Dev - the hottest place to talk about XML technologies, trends, systems architecture and all the latest buzz. Bookmark this RSS and ATOM feed now!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member