Changing HTML standards of an existing CodeCharge Studio project

I’ve just tryed to change the template type of an exiting project in CodeCharge Studio. To my surprise, there isn’t an option in CCS to change the project template or Section508 compatibility.

When you create a new project in CodeCharge Studio, it allows to create a project that is compatible with HTML or XHTML standards. Also, there’s an option that turns on Section508 compatibility.

But what should you do when you need to change these options of an existing project?

As I’ve just found out that there’s only one way to change them. You should modify the project file. CCS project file is saved in XML format and it has a *.ccs extension.

 ... htmlTemplateType="xHTML" isSection508="True" ... />

To change the template type you should change htmlTemplateType attribute. Allowed values are: HTML or xHTML.

To change Section508 compatibility you should change isSection508 attribute. Allowed values are: True or False.

Before you changing these attributes you should close the project. And after changing these attributes you have to:

  • Regenerate all the project by Project Explorer -> Right Click -> Generate Code.
  • Regenerate all the pages HTML templates by switching between Design mode, adding a space, for example, and switching to HTML.
  • And you should switch to Code tab and back to HTML tab to regenerate JavaScript.

After chese changes, there will be some complexities like xmlns attributes or XML comments in JavaScripts. You should change this code by hands. When you create new pages everything will be OK.

Links

CodeCharge Studio’s web site