C# Code Generation

 

The C# Code Generation wizard is available only in Stylus Studio XML Enterprise Suite.

You use the C# Code Generation dialog box to specify information Stylus Studio will use to generate C# code for the current XQuery or XSLTdocument. C# files are generated with a .cs extension.

Fields

Target directory

The directory to which you want to write the generated code. You can

  • Use the default - the Windows Application Directory ( C:\Documents and Settings\dfoster\My Documents\Stylus Studio\sources, for example). The \Stylus Studio folder is created when you install Stylus Studio; the \sources folder is created for the generated code.
  • Type a directory path by hand.
  • Use the browse button ( ) to select a file system directory.

Namespace

The name you want to use for the C# namespace, which sets the scope for the generated C# code. Left blank by default.

Class name

The name you want to use for the generated C# class. By default, this is the name of the document for which you are generating the C# code.

Open the generated filet

Whether or not you want to open the generated file in a third-party application (Microsoft Visual Studio, for example).

For More Information

Generating C# Code for XQuery

Generating C# Code for XSLT

 
Free Stylus Studio XML Training: