When a document is loaded, epcEdit will automatically define a set of XPaths that cover the element types that occur in your document and initialize them with empty style settings. If you change these style settings, your changes will be saved in the current document template.
You may want to add additional XPath specification to your style sheet for defining different styles for elements in different positions in the document hierarchy. To add a new XPath to the style sheet for your document, perform the following steps:
Adding a new XPath
Position the insertion cursor inside one of the elements for which you want to add an XPath statement. For example, if you want to add an XPath for chapter titles, position the insertion cursor inside a title element in a chapter.
Bring up the Style Sheet dialog by selecting -> from the main menu.
Click on the button in the first tab of the Style Sheet dialog. The following dialog will appear:
The path to the current element is already shown at the bottom of the dialog. The list above the path contains all elements in this path. You can add new elements to the XPath by selecting the element name from the list of available elements at the top of the dialog.
You can modify the position of an element in the list by selecting that element and pressing the or buttons to raise or lower the element in the list.
When you have finished the XPath that you want to add, click on the button to add the XPath to the style sheet.
After adding a new XPath to your style sheet, the new XPath specification is selected in the Style Sheet dialog and you can continue to define the layout characteristics for the new XPath.
It is advisable to make an XPath only as specific as necessary. The XPath in the example above specifies the complete path of the title element and any style sheet settings would apply only to a title element that occurs in a section element that is a direct child of the article element. To define an XPath that matches all title elements that occur as a direct child of a section element, just delete the leading article from the XPath by selecting the topmost entry in the list and pressing the button.