xml spy
Previous  Top  Next
CALS / HTML Table properties...

This command allows you to define the type of table, CALS or HTML, you want Document Editor to support when you open the XML document or sps template there.

cals-html-properties

XML Tables and Document Editor
XML Spy Document Editor now supports the use of CALS and HTML tables directly in Document Editor (or in the Document Editor view of the IDE).

Please note:
 
·Only one of the two table types can be inserted into a Document Editor XML document (any number of fixed and dynamic tables can still be inserted).  
 
·The table data are saved in the XML file, and have no effect on the sps template file.  
 
·You can assign existing XML tags, in your XML document, to the default CALS or HTML tags in the User Defined column. This allows you to use existing XML tags as CALS or HTML table tags.  
 
·CALS or HTML tables can only be inserted at the exact position defined in the assigned schema file.  

Prerequisites for CALS or HTML tables:
 
·CALS - a DocBook DTD or Schema that supplies the CALS tags  
HTML - a XHTML.DTD or Schema that supplies the HTML tags  
 
·An SPS file template - created in XSLT Designer which includes/references these DTD/Schemas, and also contains the tags, tables, graphics etc. that form the basis of the template.  
 
Example:
The ...\Altova\XML Spy Suite\Examples folder contains the HTML-OrgChart.sps file seen below, as well as the other necessary files.

The sps template file:
 
·references the Html-OrgChart.xsd schema file (which also imports the html-address.xsd file), and  
 
·uses the Html-OrgChart.xml as the working XML file  

44-html-orgch1  

Please note:  
The Html-OrgChart.xsd file includes the HTML table tags under the para tag. This means that HTML tables can only be inserted within/under a para tag in Document Editor.  
 
To add CALS or HTML tables anywhere else in this example, the schema file would have to be edited. You would have to insert the table, and all table sub tags, under the tag you want to contain a CALS / HTML table.  

To prepare the sps file for inclusion of HTML or CALS tables:

1.Select the menu option Properties | CALS / HTML Tables...  

44-html-prop1  

2.Click the "Enable XML tables in Document Editor" check box.  
3.Use the "Type" combo box to select the type of table you want to insert in Document Editor, HTML in this case.  
4.Confirm with OK.  
The sps template file is now configured. HTML table(s) can be inserted under the para tag when you use this HTML-OrgChart template.  

Please note:  
If you enter an element name in the User Defined column that does not exist in the schema file associated with the XML document, the element name will appear in red.  

Please see the Document Editor documentation on how to insert and use the CALS / HTML tables.



Previous  Top  Next

⌐ 2002 Altova