home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _1FC110F414E74FE7BD7C9036B3C149EE < prev    next >
Text File  |  2003-03-07  |  9KB  |  314 lines

  1. Customizing the XML environment
  2.  
  3. You can customize the XML environment to make your work more efficient. For example, you can change the appearance and location of XML toolbars.
  4.  
  5. In this section, you'll learn about
  6.  
  7.   customizing WordPerfect for XML
  8.   
  9.   customizing the WordPerfect DTD Compiler
  10.   
  11.   customizing the WordPerfect XML Project Designer
  12.   
  13. Customizing WordPerfect for XML
  14.  
  15. 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.
  16.  
  17. You can add XML options to the application bar. You can also add buttons to the XML toolbar and property bar.
  18.  
  19. To change the appearance of XML tags in WordPerfect
  20.  
  21. 1    Click Tools  Settings.
  22.  
  23. 2    Click Display.
  24.  
  25. 3    Click the XML tab.
  26.  
  27. 4    In the XML codes area, enable one of the following options:
  28.  
  29.   Display codes
  30.   
  31.   Display as markers
  32.   
  33.   Hide codes
  34.   
  35. 5    In the Reveal Codes area, enable one of the following options:
  36.  
  37.   Show tag layout-displays the XML tag name in Reveal Codes
  38.   
  39.   Show tag attribute-displays the XML tag and its associated attributes in Reveal Codes
  40.   
  41. 6    In the Colors area, open any of the following color pickers, and click a color:
  42.  
  43.   Background-sets the background color for the tag
  44.   
  45.   Text-sets the text color for the tag
  46.   
  47. Tip
  48.  
  49.   You can change the display options of XML tags in WordPerfect by clicking the Change XML codes button on the XML toolbar.
  50.   
  51. To specify import options for XML documents in WordPerfect
  52.  
  53. 1    Click Tools  Settings.
  54.  
  55. 2    Click Environment.
  56.  
  57. 3    Click the XML tab.
  58.  
  59. 4    Enable one or more of the following check boxes:
  60.  
  61.   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
  62.   
  63.   Prompt for file type when importing XML/SGML documents-lets you specify the XML file type when importing an XML file
  64.   
  65. Tips
  66.  
  67.   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.
  68.   
  69.   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.
  70.   
  71. To specify the default location for XML WordPerfect templates in WordPerfect
  72.  
  73. 1    Click Tools  Settings.
  74.  
  75. 2    Click Files.
  76.  
  77. 3    Click the XML tab.
  78.  
  79. 4    Click Browse in any of the following boxes:
  80.  
  81.   Template folder-lets you set the location of the WordPerfect template
  82.   
  83.   Project base template-lets you set the location of the template on which other templates can be based
  84.   
  85.   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
  86.   
  87. 5    In the Select default folder dialog box, choose the drive where the folder is stored, and click the folder.
  88.  
  89.  
  90.  
  91. You can also    
  92.  
  93. 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.
  94.  
  95. Automatically update XML documents stored in the Favorites folder every time you save a document.    Enable the Update favorites with changes check box.
  96.  
  97. View the file location settings    Click View all.
  98.  
  99. Modify the settings for a catalog file    Click Modify.
  100.  
  101.  
  102.  
  103. To add XML options to the application bar in WordPerfect
  104.  
  105. 1    Click Tools  Settings.
  106.  
  107. 2    Click Application bar.
  108.  
  109. 3    In the Select items to appear on the bar list, enable one or more of the following check boxes:
  110.  
  111.   XML element-lets you view the name of the active XML element on the application bar
  112.   
  113.   XML template/Doc type-lets you view the selected XML template or document type on the application bar
  114.   
  115. Note
  116.  
  117.   For more information about customizing the application bar in WordPerfect, see "Customizing the application bar."
  118.   
  119. To add a button to the XML toolbar in WordPerfect
  120.  
  121. 1    Click Tools  Settings.
  122.  
  123. 2    Click Customize.
  124.  
  125. 3    Click the Toolbars tab.
  126.  
  127. 4    Choose XML from the Available toolbars list.
  128.  
  129. 5    Click Edit.
  130.  
  131. 6    In the Toolbar editor dialog box, click the Features tab.
  132.  
  133. 7    Choose a category from the Features categories list box.
  134.  
  135. 8    Choose a feature from the Features list.
  136.  
  137. 9    Click Add button.
  138.  
  139. Note
  140.  
  141.   For more information about customizing toolbars in WordPerfect, see "Customizing toolbars" and "Customizing toolbar buttons and separators."
  142.   
  143. To add a button to the XML property bar in WordPerfect
  144.  
  145. 1    Click Tools  Settings.
  146.  
  147. 2    Click Customize.
  148.  
  149. 3    Click the Property bars tab.
  150.  
  151. 4    Choose an XML property bar from the Available property bar list.
  152.  
  153. 5    Click Edit.
  154.  
  155. 6    In the Property bar editor dialog box, click the Features tab.
  156.  
  157. 7    Choose a category from the Features categories list box.
  158.  
  159. 8    Choose a feature from the Features list.
  160.  
  161. 9    Click Add button.
  162.  
  163. Note
  164.  
  165.   For more information about customizing the property bar in WordPerfect, see "Customizing the property bar."
  166.   
  167. Customizing the WordPerfect DTD Compiler
  168.  
  169. When you compile a DTD, the WordPerfect DTD Compiler searches default folder for the required files.
  170.  
  171. The WordPerfect DTD Compiler also lets you save a log of the DTD compiling process to a file for further analysis.
  172.  
  173. You can specify the case in which elements display when you open a document.
  174.  
  175. To set default folder in the WordPerfect DTD Compiler
  176.  
  177. 1    Click File  Settings  Default files/folders.
  178.  
  179. 2    Click Browse in any of the following boxes:
  180.  
  181.   DTD (input) folder-lets you specify a default folder for the Document Type Definition (DTD)
  182.   
  183.   WP template (output) folder-lets you specify a default folder to which the WordPerfect template will be saved
  184.   
  185. 3    Choose the drive where the folder is stored.
  186.  
  187. 4    Choose a folder.
  188.  
  189. 5    Click Select.
  190.  
  191.  
  192.  
  193. You can also    
  194.  
  195. Specify a default SGML declaration file    Click Browse in the SGML declaration file
  196.  
  197. Specify a default WordPerfect character mapping file    Click Browse in the WP char mapping file
  198.  
  199.  
  200.  
  201. Notes
  202.  
  203.   You can specify a default SGML declaration file only if you are working with SGML documents.
  204.   
  205.   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.
  206.   
  207. To save a log file in the WordPerfect DTD Compiler
  208.  
  209. 1    Click File  Settings  Log file options.
  210.  
  211. 2    Enable the Save log to file check box.
  212.  
  213. 3    Enable one of the following options:
  214.  
  215.   Generate from WP template filename-lets you save the log file with the same name as the WordPerfect template file
  216.   
  217.   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.
  218.   
  219. To set the case for elements in the WordPerfect DTD Compiler
  220.  
  221. 1    Click File  Settings  Naming options.
  222.  
  223. 2    In the Element names area, enable one of the following options:
  224.  
  225.   Uppercase-stores element names in the WordPerfect template in all uppercase letters
  226.   
  227.   Lowercase-stores element names in the WordPerfect template in all lowercase letters
  228.   
  229.   Preserve case-stores element names in the WordPerfect template without changing the case
  230.   
  231. Tip
  232.  
  233.   You can set the case attributes in the Attribute names area by enabling one of the options.
  234.   
  235. Customizing the WordPerfect XML Project Designer
  236.  
  237. In the WordPerfect XML Project Designer, you can specify the folder where layout files will be stored by default.
  238.  
  239. You can add buttons to the toolbar and property bar. You can also change the appearance of the toolbar and property bar.
  240.  
  241. To set the default folder for layout files in the WordPerfect XML Project Designer
  242.  
  243. 1    Click Tools  Settings  Files.
  244.  
  245. 2    Click Browse in the Project folder box.
  246.  
  247. 3    Choose the drive where the folder is stored.
  248.  
  249. 4    Choose a folder.
  250.  
  251. 5    Click Select.
  252.  
  253. To add a button to the toolbar or property bar in the WordPerfect XML Project Designer
  254.  
  255. 1    Click Tools  Settings, and click one of the following:
  256.  
  257.   Toolbar edit
  258.   
  259.   Property bar edit
  260.   
  261. 2    Click the Features tab.
  262.  
  263. 3    Choose a category from the Features categories list box.
  264.  
  265. 4    Choose a feature from the Features list.
  266.  
  267. 5    Click Add button.
  268.  
  269. Tips
  270.  
  271.   You can add a separator between buttons by dragging a separator from the Separator box to the toolbar.
  272.   
  273.   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.
  274.   
  275. To change the appearance of the toolbar or property bar in the WordPerfect XML Project Designer
  276.  
  277. 1    Click Tools  Settings, and click one of the following:
  278.  
  279.   Toolbar edit
  280.   
  281.   Property bar edit
  282.   
  283. 2    In the Appearance area, enable one of the following options:
  284.  
  285.   Text-displays buttons as text
  286.   
  287.   Picture-displays buttons as icons
  288.   
  289.   Text and picture-displays buttons as text and icons
  290.   
  291.  
  292.  
  293. You can also    
  294.  
  295. Change the location of the bar    In the Location area, enable one of the following options:
  296.  
  297.   Left
  298.   
  299.   Right
  300.   
  301.   Top
  302.   
  303.   Bottom
  304.   
  305.   Palette
  306.   
  307. 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.
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.