xml spy
Previous  Top  Next
Adding data in Document Editor

This section deals with entering data in the XML document based on the OrgChart template. The diagram below, shows you where to click in the following example.
tut_p10a  

Adding data to the document:

1.Click at position 1. and enter the name of the document (e.g. Organization Chart).  
2.Click at position 2. and the company name (e.g. Nano USA).  

tut_p11aa  

3.Press the TAB key, to place the text cursor in the address table.  
4.Fill in the address data of the company, using TAB to step through all the fields.  

tut_p11a  

5.Click at position 3. and enter a short company description (between the Desc | Para tags - if visible). You can hit the Enter key to add a new line from anywhere within the description text.  
6.Click at position 4. and enter the Department name.  
7.Hit the TAB key and fill in the Person table, using TAB to step through the fields.  

Auto- and manual validation  
When entering text in the e-mail field, you will notice that it initially appears in red. Document Editor uses the schema, on which the template is based, to provide real-time validation. When the data has been entered correctly, the text changes to black.  

The e-mail field is valid as soon as the address contains an @, another character, followed by a period (defined as a pattern in the schema file).  
 
You can validate the whole document by selecting the menu option XML | Validate, or hitting the F8 key.  

tut_p11b  

Optional fields:  
Pressing the TAB key in the Person table, skips the "Title" field. The Title field was defined as optional in the schema file, and is displayed as a link in a template document. To add data in this field, click the "add Title" text and enter your data.  
 
Hints:  
Placing the text cursor in, or above the "e-mail" field (in the Person table) causes a hint window to appear. These hints were defined in XSLT Designer and are designed to aid users when filling in the document.  
 
Hints can be defined for any element using the "Node Settings" function in XSLT Designer.  

tut_doced_p5a  
Orgchart with Large Markup visible.  

To add a new row to the Person table:
1.When the text cursor is in the last cell (Email) of the Person table, hit TAB to add a new row, or  
2.Right click and select Insert | Person.  

context_mnu_ins  

Fill in the new row with the person data.  

tut_doced_p6  

Previous  Top  Next

© 2002 Altova