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

  1. Getting started
  2.  
  3. Before beginning an XML project, you should familiarize yourself with the WordPerfect XML components that will help you create XML documents.
  4.  
  5. In this section, you'll learn about
  6.  
  7.   Exploring the WordPerfect DTD Compiler
  8.   
  9.   Exploring the WordPerfect XML Project Designer
  10.   
  11.   Exploring the WordPerfect XML Editor
  12.   
  13.   Creating XML documents
  14.   
  15.   Saving XML documents
  16.   
  17.   Compiling a DTD
  18.   
  19. Exploring the WordPerfect DTD Compiler
  20.  
  21. The WordPerfect DTD Compiler window displays the settings for the current WordPerfect template. When you create a new template, all fields are empty.
  22.  
  23. Click on the graphic below for more information about using the WordPerfect DTD Compiler.
  24.  
  25.  New XML document.
  26.  
  27. 2    Click Format  Edit layout.
  28.  
  29. 3    In the XML Project Designer, click File  DTD compile.
  30.  
  31. Exploring the WordPerfect XML Project Designer
  32.  
  33. The WordPerfect XML Project Designer window displays the layout settings specified for the current XML project. When you create a new project, all fields are empty.
  34.  
  35. Click on the graphic below for more information about using the WordPerfect XML Project Designer.
  36.  
  37.  New XML document.
  38.  
  39. 2    Click Format  Edit layout.
  40.  
  41. Exploring the WordPerfect XML Editor
  42.  
  43. The WordPerfect XML Editor is an extension of the familiar WordPerfect word processing environment. Specific XML toolbars and menu commands are only available within the WordPerfect XML Editor. 
  44.  
  45. The WordPerfect XML Editor provides a structured view of the document with a page view of the document on one side and the XML Tree on the other.
  46.  
  47. Click on the graphic below for more information about using the WordPerfect XML Editor.
  48.  
  49.  New XML document.
  50.  
  51. 2    Click XML  Show XML Tree.
  52.  
  53. Tip
  54.  
  55.   You can also display the XML Tree by clicking the XML Tree button on the property bar.
  56.   
  57. To dock the XML Tree
  58.  
  59.   Right-click the XML Tree, and click Options  Dock tree.
  60.   
  61.  
  62.  
  63. You can also    
  64.  
  65. Undock the XML Tree    Click Undock tree.
  66.  
  67. Drag the XML Tree    Position the cursor over the XML Tree so that the cursor becomes a four-way arrow, and drag the XML Tree.
  68.  
  69.  
  70.  
  71. To resize the XML Tree
  72.  
  73. 1    Position the cursor over the left or right edge of the XML Tree
  74.  
  75. The cursor becomes an arrow.
  76.  
  77. 2    Drag the edge of the XML Tree.
  78.  
  79. To display the XML Content Model
  80.  
  81. 1    Click File  New XML document.
  82.  
  83. 2    Click XML  Content model.
  84.  
  85. Note
  86.  
  87.   If you have specified an alias file that contains alias names for the elements in the current WordPerfect template, the alias names will appear in the XML Content Model.
  88.   
  89. Tip
  90.  
  91.   You can also access the XML Content Model by right-clicking the XML Tree, and clicking Content model.
  92.   
  93. Creating XML documents
  94.  
  95. With WordPerfect, you can create an XML document. You can also open XML documents.
  96.  
  97. You can open XML documents as text when you want to edit the markup code directly.
  98.  
  99. To create an XML document
  100.  
  101. 1    Click File  New XML document.
  102.  
  103. 2    Click New, and follow the wizard.
  104.  
  105. To create an XML document from a template
  106.  
  107. 1    Click File  New XML document.
  108.  
  109. 2    Choose XML from the Categories/Projects list box.
  110.  
  111. 3    Choose a project from the Categories/Project list.
  112.  
  113. 4    Choose a layout from the XML Components list.
  114.  
  115. 5    Click Select.
  116.  
  117. To open an XML document
  118.  
  119. 1    Click File  Open.
  120.  
  121. 2    Choose the drive and folder where the file is stored.
  122.  
  123. 3    Click a filename.
  124.  
  125. Notes
  126.  
  127.   You can view the document structure using the XML Tree. For more information, see "Exploring the WordPerfect XML Editor."
  128.   
  129.   When you open an XML file created using the HTML DTD, it opens in the Web Editor rather than in the WordPerfect XML Editor.
  130.   
  131. Tip
  132.  
  133.   You can also open an SGML document by clicking File  Open. WordPerfect automatically generates paired tags where they do not exist and inserts omitted tags required by the WordPerfect template if the required setting is enabled in the Environment settings dialog box. For more information, see "Customizing WordPerfect for XML."
  134.   
  135. To open an XML document as text
  136.  
  137. 1    Click Tools  Settings.
  138.  
  139. 2    Click Environment.
  140.  
  141. 3    Click the XML tab.
  142.  
  143. 4    Enable the Import HTML documents using the XML component and the Prompt for file type when importing XML/SGML documents check boxes.
  144.  
  145. 5    Click File  Open.
  146.  
  147. 6    Choose the drive and folder where the file is stored.
  148.  
  149. 7    Choose a filename.
  150.  
  151. Tip
  152.  
  153.   You can also open an SGML document as text by choosing a filename with an SGML file extension.
  154.   
  155. Saving XML documents
  156.  
  157. You can save documents to the XML file format. You can also automatically save imported XML documents in their original file format.
  158.  
  159. You can define the location where graphics are saved.
  160.  
  161. To save an XML document
  162.  
  163. 1    Click File  Save as.
  164.  
  165. 2    Choose an XML file type from the File type list box:
  166.  
  167. 3    Type a name in the File name box.
  168.  
  169. 4    Enable any of the following check boxes:
  170.  
  171.   Password protect-lets you add password security to the document
  172.   
  173.   Embed fonts-embeds fonts in the document
  174.   
  175. 5    Click Save.
  176.  
  177. 6    Enable any of the following check boxes:
  178.  
  179.   Check for errors before saving-validates the document before saving it
  180.   
  181.   Include document type declaration-saves the DTD with the document so that it can be viewed without WordPerfect
  182.   
  183.   Save soft returns in text as spaces-saves soft returns you have manually inserted into the document as spaces
  184.   
  185.  
  186.  
  187. You can also    
  188.  
  189. Save an SGML document    Choose SGML from the File type list box.
  190.  
  191. Save the SGML Declaration file at the top of an SGML document    Enable the Include SGML declaration check box.
  192.  
  193.  
  194.  
  195. Notes
  196.  
  197.   When you save a document in XML format, text between WP DATA codes is not saved.
  198.   
  199.   If the logic file was created using an earlier version of the WordPerfect DTD Compiler (WordPerfect 6.1 or Intellitag), the Include document type declaration and Include SGML declaration check boxes are not available.
  200.   
  201. To automatically save an imported XML document in its original file format
  202.  
  203. 1    Click Tools  Settings.
  204.  
  205. 2    Click Files.
  206.  
  207. 3    Click the Document tab.
  208.  
  209. 4    Enable the On save keep document's original file format check box.
  210.  
  211. To define where graphics are saved
  212.  
  213. 1    Click Tools  Settings.
  214.  
  215. 2    Click Files.
  216.  
  217. 3    Click the Graphic tab.
  218.  
  219. 4    Click Browse in the Default graphics folder box.
  220.  
  221. 5    Choose the drive and folder where you want to save the file.
  222.  
  223. 6    Click Select.
  224.  
  225. Compiling a DTD
  226.  
  227. Document type definitions (DTDs) define the components and structure of a document. WordPerfect uses DTD information to tag and validate documents. When you compile a DTD, the WordPerfect DTD Compiler reads the DTD you specify and creates a logic (LGC) file . The logic file is incorporated into a WordPerfect template along with the layout (LSI) file, and the alias (LNM) files. WordPerfect then uses the information in the template to validate your documents.
  228.  
  229. The WordPerfect DTD Compiler uses catalog files to locate external entity references. It searches through the active catalog file list in the order you specify. You can add catalog files to a compile. For more information on entity references, see "Working with file references."
  230.  
  231. To compile a DTD
  232.  
  233. 1    Click Start on the Windows taskbar, and click Programs  WordPerfect Office 11  Utilities  WordPerfect XML Project Designer.
  234.  
  235. 2    Click File  DTD compile.
  236.  
  237. 3    Enable any of the following check boxes:
  238.  
  239.   Compile DTD as XML-specifies that the DTD be compiled as XML
  240.   
  241.   Interpret '-' Character As [- Hyphen]-specifies that the '-' character is interpreted as a hyphen rather than a non-wrapping dash character
  242.   
  243. 4    Click Browse in each of the following boxes:
  244.  
  245.   DTD (input) file-lets you specify the name and location of the DTD file upon which the document structure is based
  246.   
  247.   WP template (output) file-lets you specify the name and location of the WordPerfect template
  248.   
  249.   SGML declaration file-lets you specify the name and location of the SGML Declaration file. This box is not available if you enable the Compile DTD as XML check box.
  250.   
  251.   WP char mapping file-lets you specify the name and location of the character mapping file. This box is not available if you enable the Compile DTD as XML check box.
  252.   
  253. 5    Choose the drive and folder where the file is stored.
  254.  
  255. 6    Click Select.
  256.  
  257. 7    Click Compile.
  258.  
  259. Notes
  260.  
  261.   The active catalog files specified in the Catalog File Manager automatically appear in the Catalog files box. For more information on catalog files, see "Working with catalog files."
  262.   
  263.   As part of the compiling process, WordPerfect checks the DTD for syntax errors. The WordPerfect DTD Compiler will not create a WordPerfect template if it finds any errors in the DTD. Compiling errors are displayed in the WordPerfect DTD Compiler Log window. For more information on an error, double-click the error in the Log window.
  264.   
  265.   By default, the WordPerfect DTD Compiler creates WordPerfect templates in the \Program Files\Corel\WordPerfect Office 11\Template\Custom WP Templates\XML folder. To access the WP templates files in WordPerfect, you can specify this location as the default folder in the file settings. For more information about file settings, see "Customizing the WordPerfect DTD Compiler."
  266.   
  267. To add a catalog file to the compile
  268.  
  269. 1    Click Start on the Windows taskbar, and click Programs  WordPerfect Office 11  Utilities  WordPerfect XML Project Designer.
  270.  
  271. 2    Click File  DTD compile.
  272.  
  273. 3    In the WordPerfect DTD Compiler, click File  Settings  Catalog files.
  274.  
  275. 4    Click Add.
  276.  
  277. 5    Choose the drive and folder where the file is stored.
  278.  
  279. 6    Choose a file.
  280.  
  281. 7    Click Select.
  282.  
  283.  
  284.  
  285. You can also    
  286.  
  287. Remove a catalog file from the compile    Click Remove.
  288.  
  289. Reorder the catalog file list    Click one of the following:
  290.  
  291.   Move up
  292.   
  293.   Move down
  294.   
  295.  
  296.  
  297. Note
  298.  
  299.   If you are working with multiple catalog files with conflicting entries, such as identical public or system identifiers, move one of the catalog files from the Active catalog files list back to the Registered catalog files list.
  300.   
  301.  
  302.  
  303.  
  304.