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

  1. Formatting XML documents
  2.  
  3. In WordPerfect, the content of an XML document is separated from its formatting using a collection of rules. WordPerfect XML Project Designer lets you create rules that specify the way elements in an XML document should display. The rules you create are saved in a WordPerfect template that you use with a WordPerfect XML document. 
  4.  
  5. In this section, you'll learn about
  6.  
  7.   working with page size definitions and layout
  8.   
  9.   centering and spacing text
  10.   
  11.   keeping text together
  12.   
  13.   inserting horizontal lines
  14.   
  15.   justifying text
  16.   
  17.   creating subscript or superscript text
  18.   
  19.   modifying font settings
  20.   
  21.   indenting lines and paragraphs
  22.   
  23.   adding tab stops
  24.   
  25.   using bulleted lists
  26.   
  27.   creating columns
  28.   
  29.   numbering lines in documents
  30.   
  31.   numbering pages
  32.   
  33.   using counters
  34.   
  35. Working with page size definitions and layout
  36.  
  37. A page size definition determines how a printer formats and prints pages. 
  38.  
  39. You can choose a page size definition and paper orientation. You can also set margins for a selected element defined in the DTD, and start an element on a new page.
  40.  
  41. By default, WordPerfect removes the white space, including tabs and spaces, where data PCDATA, RCDATA, and CDATA is not allowed in a document; however, you can choose to maintain the white space between selected elements. 
  42.  
  43. To choose a page size definition
  44.  
  45. 1    In WordPerfect XML Project Designer, open or create an XML project.
  46.  
  47. 2    In the Element rule list area, choose an element from the Rule list.
  48.  
  49. 3    Click Edit  Edit rule.
  50.  
  51. 4    Click Page   Paper size.
  52.  
  53. 5    In the Page setup dialog box, choose a paper size from the Page definition list box.
  54.  
  55. Notes
  56.  
  57.   Page size definitions are matched to the default printer and may not be available from another printer; therefore, WordPerfect uses the best match from those available with the other printer. If the best match does not produce quality results, you must re-create the page size definition using the printer you want.
  58.   
  59.   For information about selecting a default printer, see "Setting up a printer" in the WordPerfect Help.
  60.   
  61. To choose a paper orientation
  62.  
  63. 1    In WordPerfect XML Project Designer, open or create an XML project.
  64.  
  65. 2    In the Element rule list area, choose an element from the Rule list.
  66.  
  67. 3    Click Edit  Edit rule.
  68.  
  69. 4    Click Page   Paper size.
  70.  
  71. 5    In the Page definition area, enable one of the following options:
  72.  
  73.   Portrait
  74.   
  75.   Landscape
  76.   
  77. To set margins for an element
  78.  
  79. 1    In WordPerfect XML Project Designer, open or create an XML project.
  80.  
  81. 2    In the Element rule list area, choose an element from the Rule list.
  82.  
  83. 3    Click Edit  Edit rule.
  84.  
  85. 4    Click Format   Margins.
  86.  
  87. 5    In the Margins dialog box, type values in any of the following boxes:
  88.  
  89.   Left
  90.   
  91.   Right
  92.   
  93.   Top
  94.   
  95.   Bottom
  96.   
  97. To start an element on a new page
  98.  
  99. 1    In WordPerfect XML Project Designer, open or create an XML project.
  100.  
  101. 2    In the Element rule list area, choose an element from the Rule list.
  102.  
  103. 3    Click Edit  Edit rule.
  104.  
  105. 4    Click Page  New page.
  106.  
  107. To maintain the white space between selected elements
  108.  
  109. 1    In WordPerfect XML Project Designer, open or create an XML project.
  110.  
  111. 2    Click Edit   Preserve white space.
  112.  
  113. 3    In the Preserve white space dialog box, enable any of the check boxes.
  114.  
  115.  
  116.  
  117. You can also     
  118.  
  119. Select all elements    Click Select all.
  120.  
  121. Disable all selected elements     Click Clear all.
  122.  
  123.  
  124.  
  125. Centering and spacing text
  126.  
  127. You can center text between the top and bottom margins of a document. 
  128.  
  129. You can change the spacing between lines of text associated with a specific element.
  130.  
  131. To center text between the top and bottom margins
  132.  
  133. 1    In WordPerfect XML Project Designer, open or create an XML project.
  134.  
  135. 2    In the Element rule list area, choose an element from the Rule list.
  136.  
  137. 3    Click Edit  Edit rule.
  138.  
  139. 4    Click Page  Center page, and enable one of the following options:
  140.  
  141.   Current page-to center text on the current page
  142.   
  143.   Current and subsequent pages-to center text on all the pages in the document
  144.   
  145.   No centering-to turn page centering off
  146.   
  147. To change the spacing between lines of text
  148.  
  149. 1    In WordPerfect XML Project Designer, open or create an XML project.
  150.  
  151. 2    In the Element rule list area, choose an element from the Rule list.
  152.  
  153. 3    Click Edit   Edit rule.
  154.  
  155. 4    Click Line  Spacing, and click one of the following:
  156.  
  157.   Single-to set single line spacing
  158.   
  159.   Double-to set double line spacing
  160.   
  161.   Other-to set custom line spacing
  162.   
  163. If you clicked Other, type a value in the box in the Line spacing dialog box.
  164.  
  165. Note
  166.  
  167.   In single-spacing, the distance from baseline to baseline is one line height. When you click Other and type a value in the Line spacing dialog box, the current line height is multiplied by that number.
  168.   
  169. Keeping text together
  170.  
  171. To keep words together, you can insert a hard space between them. You can also prevent the first and last lines of a paragraph from being separated from the rest of the paragraph across a page break.
  172.  
  173. You can also insert a line break to begin a new line without ending the paragraph.
  174.  
  175. To keep words together
  176.  
  177. 1    In WordPerfect XML Project Designer, open or create an XML project.
  178.  
  179. 2    In the Element rule list area, choose an element from the Rule list.
  180.  
  181. 3    Click Edit   Edit rule.
  182.  
  183. 4    Click Insert  Hard space.
  184.  
  185. To keep a paragraph together
  186.  
  187. 1    In WordPerfect XML Project Designer, open or create an XML project.
  188.  
  189. 2    In the Element rule list area, choose an element from the Rule list.
  190.  
  191. 3    Click Edit   Edit rule.
  192.  
  193. 4    Click Page  Widow/orphan.
  194.  
  195. To insert a line break
  196.  
  197. 1    In WordPerfect XML Project Designer, open or create an XML project.
  198.  
  199. 2    In the Element rule list area, choose an element from the Rule list.
  200.  
  201. 3    Click Edit   Edit rule.
  202.  
  203. 4    Click Line  New line.
  204.  
  205. Inserting horizontal lines
  206.  
  207. You can insert a preset horizontal line that extends between margins. This is useful if you want to separate text or graphics on a page to make a document visually appealing and easier to read.
  208.  
  209. To insert a horizontal line
  210.  
  211. 1    In WordPerfect XML Project Designer, open or create an XML project.
  212.  
  213. 2    In the Element rule list area, choose an element from the Rule list.
  214.  
  215. 3    Click Edit  Edit rule.
  216.  
  217. 4    Click Insert   Horizontal line.
  218.  
  219. Justifying text
  220.  
  221. You can justify text in a WordPerfect XML document. Doing so aligns the text horizontally between the left and right margins of the page. 
  222.  
  223. To justify text
  224.  
  225. 1    In WordPerfect XML Project Designer, open or create an XML project.
  226.  
  227. 2    In the Element rule list area, choose an element from the Rule list.
  228.  
  229. 3    Click Edit   Edit rule.
  230.  
  231. 4    Click Paragraph  Justification, and click one of the following:
  232.  
  233.   Left-to align text evenly with the left margin
  234.   
  235.   Right-to align text evenly with the right margin
  236.   
  237.   Center-to center text between the left and right margins
  238.   
  239.   Full-to align text, excluding the last line, between the left and right margins
  240.   
  241.   All-to align text, including the last line, between the left and right margins
  242.   
  243. Creating subscript or superscript text
  244.  
  245. You can create subscript or superscript text.
  246.  
  247. To create subscript or superscript text
  248.  
  249. 1    In WordPerfect XML Project Designer, open or create an XML project.
  250.  
  251. 2    In the Element rule list area, choose an element from the Rule list.
  252.  
  253. 3    Click Edit  Edit rule.
  254.  
  255. 4    Click Format  Font.
  256.  
  257. 5    In the Font properties dialog box, click the Font tab.
  258.  
  259. 6    Click Position, and click one of the following:
  260.  
  261.   Subscript
  262.   
  263.   Superscript
  264.   
  265.  
  266.  
  267. You can also    
  268.  
  269. Turn subscript text on or off    Click Position, and click Subscript on or Subscript off.
  270.  
  271. Turn superscript text on or off    Click Position, and click Superscript on or Superscript off.
  272.  
  273.  
  274.  
  275. Modifying font settings
  276.  
  277. You can apply formatting to text to change the font and its attributes, such as style, size, and color.
  278.  
  279. To change the font and font attributes
  280.  
  281. 1    In WordPerfect XML Project Designer, open or create an XML project.
  282.  
  283. 2    In the Element rule list area, choose an element from the Rule list.
  284.  
  285. 3    Click Edit  Edit rule.
  286.  
  287. 4    Click Format  Font.
  288.  
  289. 5    In the Font properties dialog box, click the Font tab.
  290.  
  291. 6    Choose a font from the Face list.
  292.  
  293.  
  294.  
  295. You can also     
  296.  
  297. Change the font style    In the Appearance area, enable any of the check boxes.
  298.  
  299. Change the font size    Choose a font size from the Size list box.
  300.  
  301. Set the relative font size    Click Relative size.
  302.  
  303. Change the font color    Open the Color picker, and click a color.
  304.  
  305.  
  306.  
  307. Indenting lines and paragraphs
  308.  
  309. Indenting arranges text on a page by moving one or more lines to the left or the right of the margin. You can indent a line or a paragraph.
  310.  
  311. To move the first line of a paragraph farther to the left than subsequent lines, you can insert a hanging indent. 
  312.  
  313. To indent a line
  314.  
  315. 1    In the WordPerfect XML Project Designer, open or create an XML project.
  316.  
  317. 2    In the Element rule list area, choose an element from the Rule list.
  318.  
  319. 3    Click Edit  Edit rule.
  320.  
  321. 4    Click Line  Tab, and choose one of the following options:
  322.  
  323.   Soft tab-to indent the line according to the tab type defined in the next tab setting
  324.   
  325.   Back tab-moves the insertion point to the previous tab setting
  326.   
  327.   Hard tabs-to indent the line according to the position defined in the next tab setting
  328.   
  329.   Hard tabs with dot leaders-to indent the line with leaders to the next tab setting
  330.   
  331. Note
  332.  
  333.   Hard tabs remain even if you modify the tab settings.
  334.   
  335. To indent a paragraph
  336.  
  337. 1    In WordPerfect XML Project Designer, open or create an XML project.
  338.  
  339. 2    In the Element rule list area, choose an element from the Rule list.
  340.  
  341. 3    Click Edit  Edit rule.
  342.  
  343. 4    Click Paragraph Indent, and click one of the following:
  344.  
  345.   Normal-to move a paragraph one tab stop to the right
  346.   
  347.   Double-move a paragraph in one tab stop from both the right and left margins
  348.   
  349. Note
  350.  
  351.   A double indent is often used to format lengthy quotations.
  352.   
  353. To insert a hanging indent
  354.  
  355. 1    In WordPerfect XML Project Designer, open or create an XML project.
  356.  
  357. 2    In the Element rule list area, choose an element from the Rule list.
  358.  
  359. 3    Click Edit  Edit rule.
  360.  
  361. 4    Click Paragraph Indent, and click one of the following:
  362.  
  363.   Normal-to move a paragraph one tab stop to the right
  364.   
  365.   Double-move a paragraph in one tab stop from both the right and left margins
  366.   
  367. 5    Click Line  Tab  Back tab.
  368.  
  369. Adding tab stops
  370.  
  371. You can add tab stops to a document. Tab stops let you determine where the cursor moves to when you tab forward or tab back. 
  372.  
  373. You can also delete tab stops.
  374.  
  375. To add a tab stop
  376.  
  377. 1    In WordPerfect XML Project Designer, open or create an XML project.
  378.  
  379. 2    In the Element rule list area, choose an element from the Rule list.
  380.  
  381. 3    Click Edit  Edit rule.
  382.  
  383. 4    Click Line  Tab set.
  384.  
  385. 5    From the Settings area in the Tab set dialog box, choose a tab style from the Type list box.
  386.  
  387. 6    Type a value in the Position box.
  388.  
  389. 7    In the Position from area, click one of the following buttons:
  390.  
  391.   Left margin (relative)
  392.   
  393.   Left edge of paper (absolute)
  394.   
  395. If you want to repeat the tab stop at regular intervals, enable the Repeat every check box, and type a value in the box to its right.
  396.  
  397. 8    Click Set.
  398.  
  399. Note
  400.  
  401.   When you use Dot left, Dot center, Dot right, and Dot decimal tabs, leaders display between the tab insertion point and the next tab setting. Leaders help to guide the eye from one tab stop to the next, usually illustrating a relationship between information at the tab stops; for example, you can use leaders in a table of contents to show the page number that corresponds to a title.
  402.   
  403. To delete a tab stop
  404.  
  405. 1    In WordPerfect XML Project Designer, open or create an XML project.
  406.  
  407. 2    In the Element rule list area, choose an element to which a tab stop is applied from the Rule list.
  408.  
  409. 3    Click Edit  Edit rule.
  410.  
  411. 4    Click Line  Tab set.
  412.  
  413. 5    In the Settings area of the Tab set dialog box, choose a tab setting from the Type list box.
  414.  
  415. 6    Click Clear.
  416.  
  417.  
  418.  
  419. You can also     
  420.  
  421. Delete all tabs    Click Clear all.
  422.  
  423. Restore the default tab settings    Click Default.
  424.  
  425.  
  426.  
  427. Using bulleted lists
  428.  
  429. You can create bulleted lists for list elements in a DTD by defining a bullet type and creating the bulleted list in a document. 
  430.  
  431. You can also use counters to create numbered lists. For more information, see "Using counters".
  432.  
  433. To define a bullet type for a bulleted list
  434.  
  435. 1    In WordPerfect XML Project Designer, open or create an XML project.
  436.  
  437. 2    In the Element rule list area, choose an element from the Rule list.
  438.  
  439. 3    In the Rule entry for start tag box, click where you want to place the bullet.
  440.  
  441. 4    Click Display  Text.
  442.  
  443. 5    In the Text dialog box, click Symbols.
  444.  
  445. 6    From the Set list box, choose a symbol type or character set.
  446.  
  447. 7    Choose a symbol from the Symbols list.
  448.  
  449. 8    Click Insert and close.
  450.  
  451. Note
  452.  
  453.   You can also create bulleted lists by defining a bullet type as a style in a WordPerfect template. For more information about styles, see "Formatting XML documents".
  454.   
  455. To create a bulleted list
  456.  
  457. 1    In a WordPerfect XML document, open the XML flyout, and click Elements.
  458.  
  459. 2    Click in a tag where bulleted lists are valid.
  460.  
  461. 3    From the All elements list in the Elements dialog box, choose BulletList.
  462.  
  463. 4    Enable the Auto-insert check box.
  464.  
  465. 5    Click Insert.
  466.  
  467. 6    Click Exit.
  468.  
  469. 7    Choose </> ListItem from the All elements list.
  470.  
  471. 8    Click Insert.
  472.  
  473. Creating columns
  474.  
  475. You can use columns to divide text vertically on a page. There are four types of columns for use in documents such as newsletters, glossaries, scripts, or inventory lists: Newspaper, Balanced newspaper, Parallel, and Parallel with block protect.
  476.  
  477. Text in newspaper columns flows down the column to the bottom of a page or column break and starts again at the top of the next column.
  478.  
  479. Balanced newspaper columns are similar to regular newspaper columns, but each column is adjusted on the page so they are equal in length.
  480.  
  481. Parallel columns group text across the page in a row. The next row starts below the longest column of the previous row. Parallel columns are useful for resumes, scripts, charts, inventory lists, or lists where columns span across pages.
  482.  
  483. Parallel columns with block protect keep each row of columns together. If a column in one row becomes so long that it moves across a page break, the entire row moves to the next page. 
  484.  
  485. Any column can be discontinued. 
  486.  
  487. To create a column
  488.  
  489. 1    In the WordPerfect XML Project Designer, open or create an XML project.
  490.  
  491. 2    In the Element rule list area, choose an element from the Rule list.
  492.  
  493. 3    Click Edit   Edit rule.
  494.  
  495. 4    Click Format   Columns.
  496.  
  497. 5    In the Number of columns area of the Columns dialog box, type a value in the Columns box.
  498.  
  499. 6    In the Type area, enable one of the following options:
  500.  
  501.   Newspaper-to format text to flow down a column to the bottom of a page or column break and continues it at the top of the next column
  502.   
  503.   Balanced newspaper-to format newspaper columns of equal length
  504.   
  505.   Parallel-to format columns grouped across a page in rows, and starting subsequent rows below the longest column of the previous row
  506.   
  507.   Parallel w/block protect-to format Parallel columns with all of the rows of columns kept together across page breaks
  508.   
  509.  
  510.  
  511. You can also    
  512.  
  513. Change the spacing between rows in Parallel or Parallel w/block protect columns    Click in the Line spacing between rows in parallel columns box.
  514.  
  515. Set the default spacing between Newspaper and Balanced newspaper columns    Click in the Spacing between columns box.
  516.  
  517. Specify column widths    In the Column widths area, type a value in any of the Column boxes; for example, Column 1.
  518.  
  519. Specify the width between columns    In the Column widths area, type a value in the appropriate Space boxes.
  520.  
  521.  
  522.  
  523. Note
  524.  
  525.   You can number lines in newspaper columns. For more information, see "To number lines in newspaper columns."
  526.   
  527. Tip
  528.  
  529.   If you want to maintain the column widths or the width between columns, regardless of width or margin changes in other columns, enable the Fixed check box to the right of the Column and Space boxes in the Column widths area.
  530.   
  531. To discontinue a column
  532.  
  533. 1    In WordPerfect XML Project Designer, open or create an XML project.
  534.  
  535. 2    From the Rule list in the Element rule list area, choose an element to which you have formatted columns.
  536.  
  537. 3    Click Edit   Edit rule.
  538.  
  539. 4    Click Page  Hard column.
  540.  
  541. Numbering lines in documents
  542.  
  543. You can number the lines in a document. When you number lines, you can set the numbering method, the starting line number, where you want the numbers to begin, and which line numbers are displayed and printed.
  544.  
  545. You can also number lines in newspaper columns.
  546.  
  547. To make it easier to find information in your XML documents, you can automatically number all lines in a document or in newspaper columns. 
  548.  
  549. To number the lines in a document
  550.  
  551. 1    In WordPerfect XML Project Designer, open or create an XML project.
  552.  
  553. 2    In the Element rule list area, choose an element from the Rule list.
  554.  
  555. 3    Click Edit  Edit rule.
  556.  
  557. 4    Click Line  Numbering.
  558.  
  559. 5    In the Line numbering dialog box, enable the Turn line numbering on check box.
  560.  
  561. 6    In the Position of numbers area, enable one of the following options:
  562.  
  563.   From the left edge of page-to specify the distance from the left edge of the page or from the center of the space between columns, to the line number
  564.   
  565.   Left of margin-lets you specify the distance from the left margin of the page to the line number
  566.   
  567.  
  568.  
  569. You can also    
  570.  
  571. Set the starting line number    In the Numbering options area, type a value in the Starting line number box.
  572.  
  573. Set the first printed line number    In the Numbering options area, enable the First printing line number option.
  574.  
  575. Specify the interval between printed line numbers    Type a value in the Numbering interval box.
  576.  
  577. Restart line numbers on each page    Enable the Restart numbering on each page check box.
  578.  
  579. Include blank line when numbering    Enable the Count blank lines check box.
  580.  
  581. Choose a numbering method    Choose a numbering method from the Numbering method list box.
  582.  
  583.  
  584.  
  585. To number lines in newspaper columns
  586.  
  587. 1    In WordPerfect XML Project Designer, open or create an XML project.
  588.  
  589. 2    From the Rule list in the Element rule list area, choose an element to which you have formatted columns.
  590.  
  591. 3    Click Edit  Edit rule.
  592.  
  593. 4    Click Line  Numbering.
  594.  
  595. 5    In the Line numbering dialog box, enable the Turn line numbering on check box.
  596.  
  597. 6    In the Position of numbers area, enable the Left of margin option.
  598.  
  599. If you want to specify the distance between the line numbers and the left edge of text in each column, type a value in the box to the right of the Left of margin option.
  600.  
  601. 7    Enable the Number all newspaper columns check box.
  602.  
  603.  
  604.  
  605. You can also    
  606.  
  607. Choose a numbering style    In the Numbering options dialog box, choose a numbering style from the Numbering method list box.
  608.  
  609. Specify a starting line number    Type a value in the Starting line number box.
  610.  
  611. Specify a numbering interval    Type a value in the Numbering interval check box.
  612.  
  613.  
  614.  
  615. Note
  616.  
  617.   If you specify the distance between the line numbers and the left edge of text in each column, that distance must be less than the amount of space between the columns; otherwise, the line numbers may overlap the text in the columns.
  618.   
  619. Numbering pages
  620.  
  621. You can number the pages of a document, including information such as the number of pages, chapters, volumes, or secondary pages. You can choose a position for the numbers and define the numbering format you want to use.
  622.  
  623. To set a page number for a specific element
  624.  
  625. 1    In WordPerfect XML Project Designer, open or create an XML project.
  626.  
  627. 2    In the Element rule list area, choose an element from the Rule list.
  628.  
  629. 3    Click Edit   Edit rule.
  630.  
  631. 4    Click Page   Numbering.
  632.  
  633. 5    In the Page numbering dialog box, choose a position from the Position list box.
  634.  
  635. 6    From the Numbering style list box, choose a numbering style.
  636.  
  637. 7    Type a value in the New page number box.
  638.  
  639.  
  640.  
  641. You can also     
  642.  
  643. Increase or decrease the page number    Type a value in the Increase/decrease existing page number box.
  644.  
  645. Include text with the page number    In the Number and accompanying text box, type text where you want it to display with the page number; for example, to display Chapter 1, Page 1, click to the left of [Pg#], type Chapter 1, and press the Spacebar. 
  646.  
  647.  
  648.  
  649. Using counters
  650.  
  651. WordPerfect uses several built-in counters to keep track of pages, paragraphs, lines, figures, and other numbered items in an XML document. Counters are useful if you want to count equation boxes, figure boxes, table boxes, text boxes, and more. 
  652.  
  653. Counters can display numbers, letters, and Roman numerals anywhere in a document. You can use counters to create numbering levels. You can also change the numbering method used in counters. You can also increase or decrease the value of a counter. You can also display counters in a document. You can also delete counters.
  654.  
  655. To create numbered levels using counters
  656.  
  657. 1    In WordPerfect XML Project Designer, open or create an XML project.
  658.  
  659. 2    In the Element rule list area, choose an element from the Rule list.
  660.  
  661. 3    Click Edit  Define counters.
  662.  
  663. 4    Click Create.
  664.  
  665. 5    In the Create counter definition dialog box, type a name in the Counter name box.
  666.  
  667. 6    Type a value in the Number of levels box.
  668.  
  669. 7    In the Multi-level definition area, type a name for each level in the corresponding Level name box.
  670.  
  671. 8    From the corresponding Numbering method list box, choose a numbering method for each level.
  672.  
  673. Note
  674.  
  675.   When you set a value for one level of a multi-level counter, the value for all lower levels is reset to 1; for example, a three-level counter has been set at 2,4,5,. If level 1 is increased to 3, levels 2 and 3 are reset to 1. If all three levels of the counter are displayed, the numbers will be 3,1,1.
  676.   
  677. Tip
  678.  
  679.   If you want to define a single level, choose a numbering method from the Single level method box.
  680.   
  681. To change the numbering method of a counter
  682.  
  683. 1    In WordPerfect XML Project Designer, open or create an XML project.
  684.  
  685. 2    In the Element rule list area, choose an element from the Rule list.
  686.  
  687. 3    Click Display  Counters.
  688.  
  689. 4    In the Counter number dialog box, choose a counter from the Counter list.
  690.  
  691. 5    Click Value.
  692.  
  693. 6    In the Set value/number method dialog box, choose a numbering method from the Numbering method list box.
  694.  
  695. Note
  696.  
  697.   If you change the numbering method of a counter associated with the root element, all elements are affected. 
  698.   
  699. To increase or decrease the value of a counter
  700.  
  701. 1    In WordPerfect XML Project Designer, open or create an XML project.
  702.  
  703. 2    In the Element rule list area, choose an element from the Rule list.
  704.  
  705. 3    Click Edit  Edit rule.
  706.  
  707. 4    Click Display   Counters.
  708.  
  709. 5    In the Counter numbering dialog box, choose a counter level from the Counter list box.
  710.  
  711. 6    In the Value area, click one of the following buttons:
  712.  
  713.   Increase- to increase the counter by one
  714.   
  715.   Decrease- to decrease the counter by one
  716.   
  717. Note
  718.  
  719.   When you increase or decrease a value for one level of a multi-level counter, the value for all lower levels is reset to 1; for example, a three-level counter has been set at 2,4,5,. If level 1 is increased to 3, levels 2 and 3 are reset to 1. If all three levels of the counter are displayed, the numbers will be 3,1,1.
  720.   
  721. To display counters in a document
  722.  
  723. 1    In WordPerfect XML Project Designer, open or create an XML project.
  724.  
  725. 2    In the Element rule list area, choose an element from the Rule list.
  726.  
  727. 3    Click Edit   Edit rule.
  728.  
  729. 4    Click Display  Counters.
  730.  
  731. 5    In the Value area of the Counter numbering dialog box, click Display in document.
  732.  
  733.  
  734.  
  735. You can also    
  736.  
  737. Increase the counter by one and display it in the document    Click a counter in the Counter list, and click Increase and display.
  738.  
  739. Decrease the counter by one and display it in the document    Click a counter in the Counter list, and click Decrease and display.
  740.  
  741.  
  742.  
  743. Tips
  744.  
  745.   If you want the counter to begin at 1, set the value to 0. When you click the Increase and display button, the counter increases before it is displayed.
  746.   
  747.   If you want to display a number that is equal to that of the starting value of the counter, chose a counter level from the Counter list, and click Display in document before increasing or decreasing a counter; otherwise, the first number displayed will be increased or decreased by one from the starting value.
  748.   
  749. To delete counters
  750.  
  751. 1    In WordPerfect XML Project Designer, open or create an XML project.
  752.  
  753. 2    In the Element rule list area, choose an element from the Rule list.
  754.  
  755. 3    Click Edit   Edit rule.
  756.  
  757. 4    Click Display  Counters.
  758.  
  759. 5    In the Counter numbering dialog box, choose the counter you want to remove from the Counter/value box.
  760.  
  761. 6    Click Delete.
  762.  
  763. Note
  764.  
  765.   The counter definitions in the element rules are not deleted when you delete a counter.
  766.   
  767.  
  768.  
  769.  
  770.