xml spy
Previous  Top 
Create... popup menu

Create...
Not exactly a context menu. This menu is automatically opened when you drag an element from the schema tree view into the Design view pane. It allows you to decide how the schema component is to be used in the XSLT stylesheet.

mnu_cxt_create_struct  

Create Contents:
Selecting Create Contents inserts the respective tags, and displays them in the same line in the Design tab. The IE Preview tab displays the XML data as text in a single line without delimiters.
 
Create Paragraph:
This command encloses the contents in a paragraph. Selecting Create Paragraph, inserts the respective tags, and displays them over three lines. The first line contains the start tags, the second the (contents) placeholder, and the third all the end tags. The IE Preview tab displays the XML data as text, one line for each instance.
 
Create Table:
Selecting Create Table allows you to insert a "dynamic" table. The size of the table is determined by the XML data, and varies according to the XML file you assign (menu option File | Assign working XML file). A dialog box opens when you drop the element/attribute in the Design view.

mnu_cxt_ins_table  

The dialog box allows you to define the table attributes:
Which columns (elements or attributes) are to appear in the table, and should a table header be created. The direction the table will expand with XML data, vertically or horizontally. The cell types/contents of the table: Contents, Combo box, Field, Check box, Radio button.
 
·Contents:  
This is the default setting when inserting a table. The element/attribute tags (and content placeholders) are placed in the respective cells. The IE Preview displays the XML data as text.  
 
·Combo box:  
The element/attribute tags are placed in the respective cell. A combo box appears between the start and end tags in the Design view (in place of the (content) place holder). The combo box values are defined in the dialog box that is automatically opened.  
The IE Preview displays a combo box for each XML data instance.  
 
·Field:  
The element/attribute tags are placed in the respective cell. A text box appears between the start and end tags in the Designer view. The IE Preview displays a text box for each XML data instance.  
 
·Check box  
The element/attribute tags are placed in the respective cell. A check box appears between the start and end tags in the Designer view. The check box values are defined in the dialog box that is automatically opened. The IE Preview displays a check box for each XML data instance.  
 
·Radio button  
The element/attribute tags are placed in the respective cell. A radio button appears between the start and end tags in the Designer view. The radio button values are defined in the dialog box that is automatically opened. The IE Preview displays a radio button for each XML data instance.  

Create List:
Selecting List, inserts the respective tags and displays them over three lines in the Design view. The first line contains the start tags, the second a "bulleted" (contents) placeholder, and the third the end tags. The IE Preview tab displays the XML data as bulleted text, one line for each instance.
 
Create Image:
Selecting image, inserts the image referenced in the image path.

Create Input Field:
Selecting Input Field inserts the element/attribute tags with a text box between the start and end tags in the Designer view. The IE Preview displays a text box for each XML data instance. Input fields can be resized by clicking the right border and dragging. A popup appears displaying the current dimensions.

Create Combo box:
Selecting Combo box, allows you to define a combo box and the values it contains for the element/attribute you insert. A dialog box opens the moment you select the Combo box entry.

Click the "Plus" button to add a list entry line to the combo box. Double click in the "Visible entry" column and enter the list entry you want to appear. Double click in the "XML value" column to add combo box return values. The visible entry is used as a descriptor, the XML value is what is actually saved.

E.g.    Visible entry   XML value
   Programmer   1
   Support      2
   Manager   3

Click the "Minus" button to delete a row from the list entries.

Clicking OK inserts the element/attribute tags with a combo box between the start and end tags in the Design view. The IE Preview tab displays a combo box for each XML data instance.

To reopen this dialog box, click the combo box and select the menu option Properties | Selected object...

Create Check box:
A dialog box opens the moment you select the check box entry. To open this dialog box at a later time s

Click the "Plus" button to add an entry line to the "Checked values" column. Double click in the column and enter the checked value you want to appear. Double click in the "Unchecked value" text box to change the unchecked value. The unchecked value represents the unchecked status of a check box, and is the XML value when unchecked (a check box must always have a distinct state).

Click the "Minus" button to delete a row from the checked values.

Clicking OK inserts the element/attribute tags with a check box between the start and end tags in the Designer view. The IE Preview displays a check box for each XML data instance.

To reopen this dialog box, click the check box and select the menu option Properties | Selected object...
 
Create Radio button:
A dialog box opens the moment you select the check box entry.

Click the "Plus" button to add an entry line to the "Checked values" column. Double click in the column and enter the "Checked value" you want to appear. The checked value is the XML value that represents checked.

Click the "Minus" button to delete a row from the checked values.

Clicking OK inserts the element/attribute tags with a radio button between the start and end tags in the Designer view. The IE Preview displays a radio button for each XML data instance.

To reopen this dialog box, click the radio button and select the menu option Properties | Selected object...

Create Button:
Selecting Button inserts the element/attribute tags with a button named "Button text" between the start and end tags in the Designer view. The IE Preview displays a button for each XML data instance.

Previous  Top 

© 2002 Altova