You can customize the XML environment to make your work more efficient. For example, you can change the appearance and location of XML toolbars.
In this section, you'll learn about
customizing WordPerfect for XML
customizing the WordPerfect DTD Compiler
customizing the WordPerfect XML Project Designer
Customizing WordPerfect for XML
WordPerfect lets you customize the XML environment. You can change the appearance of XML tags, set import options for XML documents, and specify the folder where XML WordPerfect templates are saved.
You can add XML options to the application bar. You can also add buttons to the XML toolbar and property bar.
To change the appearance of XML tags in WordPerfect
1 Click Tools Settings.
2 Click Display.
3 Click the XML tab.
4 In the XML codes area, enable one of the following options:
Display codes
Display as markers
Hide codes
5 In the Reveal Codes area, enable one of the following options:
Show tag layout-displays the XML tag name in Reveal Codes
Show tag attribute-displays the XML tag and its associated attributes in Reveal Codes
6 In the Colors area, open any of the following color pickers, and click a color:
Background-sets the background color for the tag
Text-sets the text color for the tag
Tip
You can change the display options of XML tags in WordPerfect by clicking the Change XML codes button on the XML toolbar.
To specify import options for XML documents in WordPerfect
1 Click Tools Settings.
2 Click Environment.
3 Click the XML tab.
4 Enable one or more of the following check boxes:
Import HTML documents using the XML component-imports HTML documents using XML unless the Prompt for file type when importing XML/SGML documents check box is enabled
Prompt for file type when importing XML/SGML documents-lets you specify the XML file type when importing an XML file
Tips
You can also insert missing tags into an SGML document by enabling the Insert omitted tags required by DTD during SGML import check box. If a document uses omission but is not a valid SGML document, disable this check box to avoid inserting unwanted tags.
If you enable the Prompt for file type when importing XML/SGML documents check box, you can also specify the SGML file type when you are importing an SGML file.
To specify the default location for XML WordPerfect templates in WordPerfect
1 Click Tools Settings.
2 Click Files.
3 Click the XML tab.
4 Click Browse in any of the following boxes:
Template folder-lets you set the location of the WordPerfect template
Project base template-lets you set the location of the template on which other templates can be based
Default folder-lets you set the location of the default folder for document type files (logic, layout, and alias files) from earlier versions of WordPerfect
5 In the Select default folder dialog box, choose the drive where the folder is stored, and click the folder.
You can also
By default, maintain XML and SGML documents when saving Enable the Use XML/SGML as default save format when in XML/SGML mode check box.
Automatically update XML documents stored in the Favorites folder every time you save a document. Enable the Update favorites with changes check box.
View the file location settings Click View all.
Modify the settings for a catalog file Click Modify.
To add XML options to the application bar in WordPerfect
1 Click Tools Settings.
2 Click Application bar.
3 In the Select items to appear on the bar list, enable one or more of the following check boxes:
XML element-lets you view the name of the active XML element on the application bar
XML template/Doc type-lets you view the selected XML template or document type on the application bar
Note
For more information about customizing the application bar in WordPerfect, see "Customizing the application bar."
To add a button to the XML toolbar in WordPerfect
1 Click Tools Settings.
2 Click Customize.
3 Click the Toolbars tab.
4 Choose XML from the Available toolbars list.
5 Click Edit.
6 In the Toolbar editor dialog box, click the Features tab.
7 Choose a category from the Features categories list box.
8 Choose a feature from the Features list.
9 Click Add button.
Note
For more information about customizing toolbars in WordPerfect, see "Customizing toolbars" and "Customizing toolbar buttons and separators."
To add a button to the XML property bar in WordPerfect
1 Click Tools Settings.
2 Click Customize.
3 Click the Property bars tab.
4 Choose an XML property bar from the Available property bar list.
5 Click Edit.
6 In the Property bar editor dialog box, click the Features tab.
7 Choose a category from the Features categories list box.
8 Choose a feature from the Features list.
9 Click Add button.
Note
For more information about customizing the property bar in WordPerfect, see "Customizing the property bar."
Customizing the WordPerfect DTD Compiler
When you compile a DTD, the WordPerfect DTD Compiler searches default folder for the required files.
The WordPerfect DTD Compiler also lets you save a log of the DTD compiling process to a file for further analysis.
You can specify the case in which elements display when you open a document.
To set default folder in the WordPerfect DTD Compiler
1 Click File Settings Default files/folders.
2 Click Browse in any of the following boxes:
DTD (input) folder-lets you specify a default folder for the Document Type Definition (DTD)
WP template (output) folder-lets you specify a default folder to which the WordPerfect template will be saved
3 Choose the drive where the folder is stored.
4 Choose a folder.
5 Click Select.
You can also
Specify a default SGML declaration file Click Browse in the SGML declaration file
Specify a default WordPerfect character mapping file Click Browse in the WP char mapping file
Notes
You can specify a default SGML declaration file only if you are working with SGML documents.
If no path is specified for the DTD file, the current working folder is used. If no path is specified for the WordPerfect template folder, the Project template folder is used.
To save a log file in the WordPerfect DTD Compiler
1 Click File Settings Log file options.
2 Enable the Save log to file check box.
3 Enable one of the following options:
Generate from WP template filename-lets you save the log file with the same name as the WordPerfect template file
Use specified filename-lets you save the log file under the filename you enter. The default folder is the current working folder unless you have specified otherwise.
To set the case for elements in the WordPerfect DTD Compiler
1 Click File Settings Naming options.
2 In the Element names area, enable one of the following options:
Uppercase-stores element names in the WordPerfect template in all uppercase letters
Lowercase-stores element names in the WordPerfect template in all lowercase letters
Preserve case-stores element names in the WordPerfect template without changing the case
Tip
You can set the case attributes in the Attribute names area by enabling one of the options.
Customizing the WordPerfect XML Project Designer
In the WordPerfect XML Project Designer, you can specify the folder where layout files will be stored by default.
You can add buttons to the toolbar and property bar. You can also change the appearance of the toolbar and property bar.
To set the default folder for layout files in the WordPerfect XML Project Designer
1 Click Tools Settings Files.
2 Click Browse in the Project folder box.
3 Choose the drive where the folder is stored.
4 Choose a folder.
5 Click Select.
To add a button to the toolbar or property bar in the WordPerfect XML Project Designer
1 Click Tools Settings, and click one of the following:
Toolbar edit
Property bar edit
2 Click the Features tab.
3 Choose a category from the Features categories list box.
4 Choose a feature from the Features list.
5 Click Add button.
Tips
You can add a separator between buttons by dragging a separator from the Separator box to the toolbar.
You can add a button that runs a program by clicking the Programs tab, clicking Add program, and choosing the drive and folder where the program file is stored.
To change the appearance of the toolbar or property bar in the WordPerfect XML Project Designer
1 Click Tools Settings, and click one of the following:
Toolbar edit
Property bar edit
2 In the Appearance area, enable one of the following options:
Text-displays buttons as text
Picture-displays buttons as icons
Text and picture-displays buttons as text and icons
You can also
Change the location of the bar In the Location area, enable one of the following options:
Left
Right
Top
Bottom
Palette
Choose the maximum number of row or columns to display on the bar Type a value in the Maximum number of rows/columns to show box.