Table of Contents
This section provides the explanation of how to create the document "Company Profile" as shown below, as an example of creating XHTML and SVG compound documents.
- A completed example is "doc/samples/tutorial/tutorial.xml," which is located in the same folder where xfy Client is installed.
To create the document:
- Creating a New Document
- Creating Body Text - Editing XHTML -
- Drawing Figures - Editing SVG -
- Changing the View of a Document
- Saving a Document
Top of this page
Now, create a new XHTML document.
- Click
"Template" in the Document Launcher Area on the left side of the screen.
A list of document templates is displayed in the tree format.
- Double-click from the list of Document Templates.
A new XHTML document is displayed in the document view area.
Menu items and buttons for editing XHTML documents are displayed in the menu bar and tool bar.
Top of this chapter
Top of this page
Type text first, and then set the format.
Type the Headings of the document as follows:
Company Profile
About Us
Business Contents
At a Glance
Location Map
- Click the document view area.
- Type "Company Profile," and press the Enter key.
- Likewise, type "About Us" and after.
- After you type the last item "Location Map," press the Enter key. By pressing the Enter key, a paragraph is inserted after "Location Map," you can insert a SVG canvas in 3-1. Inserting an SVG Canvas.
Top of this chapter
Top of this page
Type the content of "About Us" as follows:
xfy Information Systems was formed in 1996, and since then, we are constantly working to create unique, new technologies.
- Move the cursor after "About Us."
- Press the Enter key.
A paragraph is inserted.
- Type "xfy Information Systems was formed in 1996, and ..."
- Here, don't press the Enter key after typing the sentence. If you press the Enter key, an extra paragraph will be inserted.
Top of this chapter
Top of this page
Type the content of "Business Contents" as follows:
- software development
- system support
- IT training
- Move the cursor after "Business Contents."
- Press the Enter key.
A paragraph is inserted.
- Select .
A bullet point is inserted at the beginning of the line, and you can type the list.
- Type "software development," and press the Enter key.
A new line with a bullet point at the beginning is inserted.
- Type the items in the list likewise.
- Here, don't press the Enter key after typing the last item. If you press the Enter key, an extra item will be created.
Top of this chapter
Top of this page
Under "At a Glance," type the following table that describes company information.
| company name | xfy Information Systems |
| founded | 1996 |
| annual revenue | $4.7million(2004) |
- Move the cursor after "At a Glance."
- Select .
The dialog box is displayed.
- Set as the following table, and click .
| Rows | 3 |
| Columns | 2 |
| Table Width | off |
- Type "company name" in the left cell of line 1 of the table, and press the Tab key.
The cursor moves to the right cell of line 1.
- Type "xfy Information Systems" in the right cell of line 1, and press the Tab key.
The cursor moves to the left cell of line 2.
- Type the contents in the line 2 and the subsequent lines in the same way as for the first line.
- When you finish typing all the items, drag the table border to adjust it to the width and height of the items.
Top of this chapter
Top of this page
Set a heading to the typed item.
- Move the cursor on the characters of "Company Profile."
- Select .
Heading1 is set to "Company Profile."
- Move the cursor on the characters of "About Us."
- Select .
Heading2 is set to "About Us."
- Likewise, set heading 2 to "Business Contents," "At a Glance," and "Location Map."
Top of this chapter
Top of this page
Change the style of "xfy Information Systems" in "About Us" to bold.
- Select "xfy Information Systems."
- Select .
The text "xfy Information Systems" is displayed in bold style.
- To reset bold
- Select the range of the text to reset bold.
- Select .
The bold style is reset.
Top of this chapter
Top of this page
- Select in the list of Document Templates at the left of the screen, and drag and drop it under the "Location Map" in the document view area.
A blank SVG canvas is inserted.
- If you cannot drag and drop the SVG canvas
you can insert the SVG canvas only in the part where a paragraph is inserted.
Insert a paragraph with following procedures:
- Move the cursor after "Location Map."
- Press the Enter key.
A paragraph is inserted.
* A paragraph can also be inserted by selecting .
* In 2-1-1. Typing a Heading, if you pressed the Enter key after typing the last item "Location Map," a paragraph has been already inserted.
- Click inside the SVG canvas.
Menu items and buttons for editing SVG are displayed in the menu bar and the tool bar.
Top of this chapter
Top of this page
Set the width of the SVG canvas to 600 pixels and the height to 300 pixels.
- Select .
The dialog box is displayed.
- In the dialog box, set the width to 600 and the height to 300, then click .
The size of the SVG canvas is changed.
Top of this chapter
Top of this page
Draw figures in the SVG canvas.
Set for easy drawing of figures.
- Select .
The dialog box is displayed.
- Set and on, and click .
Grid is displayed in the SVG canvas, and the function to snap on the grid is enabled.
- "Snap to Grid" is:
- the function to draw and edit and precisely placing a pointer on the grid.
Top of this chapter
Top of this page
Draw lines which represent roads.
- Select .
The dialog box is displayed.
- Set the stroke as the following table, and click .
Stroke
| Stroke Drawing | Draw |
| Width | 15 |
| Line Style |  |
| Caps | Butt |
| Join | Miter |
| Color | Gray |
| Opacity | 100% |
- Select .
- Press the mouse button at the start point of the road.
- Hold and drag the mouse, and then release the button at the end point of the road.
The road is drawn.
- Repeat steps 4 through 5 to draw all roads.
- Draw the purple line which represents a highway with the following settings:
Stroke
| Stroke Drawing | Draw |
| Width | 4 |
| Line Style |  |
| Caps | Butt |
| Join | Miter |
| Color | Purple |
| Opacity | 100% |
Top of this chapter
Top of this page
Draw four circles which represent an interchange. Here, draw a circle.
-
Select .
The dialog box is displayed.
- Set the stroke as the following table, and click .
Stroke
| Stroke Drawing | Draw |
| Width | 15 |
| Line Style |  |
| Caps | Butt |
| Join | Miter |
| Color | Gray |
| Opacity | 100% |
- Select .
- Press the mouse button at the center of the circle.
- Hold and drag the mouse referring the reference line.
- Release the button to draw the circle.

Top of this chapter
Top of this page
Copy the circle drawn, and draw four circles representing an interchange.
-
Select .
and
are shown around the circle, and the figure is selected.
-
Click on the line at any point other than
or
, and move the mouse while holding down the mouse button.
-
At the destination, release the button while holding down the Ctrl key.
The circle is copied. You will see two circles. And the circle created by the copy operation is selected.
- Repeat steps 2 through 3 until there are four circles.
Top of this chapter
Top of this page
Make the purple line representing the highway be displayed over the four circles representing the interchange.
-
Select and click the purple line.
and
are shown around the line, and the figure is selected.
-
Select .
The purple line is displayed in the foreground.
Top of this chapter
Top of this page
Draw the rectangle which represents the destination.
-
Select .
The dialog box is displayed.
- Set the stroke as the following table, and click .
Fill
| Fill Drawing | Draw |
| Rule | Nonzero |
| Color | Purple |
| Opacity | 100% |
- Select .
- Press the mouse button at the start point to draw a rectangle.
- Hold and drag the mouse, and then release the button at the end point.
The rectangle is drawn.
Top of this chapter
Top of this page
Type the following text in the figure in the SVG canvas.
- Kakinoki I.C.
- Central Highway
- to downtown
- to airport
- here
- Select .
The dialog box is displayed.
- Set the stroke as the following table, and click .
Font
| Font Drawing | Draw |
| Font | Not specified |
| Substitute font | Not specified |
| Size | 16 |
| Direction | Horizontal |
| Font Style | (Don't specify) |
| Color | Black |
| Opacity | 100% |
- Select .
- Click on the position where you want to type text.
A cursor appears there.
- Type in your desired text.
-
Repeat steps 4 through 5 to type all text.
Top of this chapter
Top of this page
In xfy Client, one document can be displayed by various methods.
Display the outline indicating the overview of the document.
- Click the XHTML canvas in the document.
- Select
"Change Vocabulary Component" at the upper right corner of the screen.
- Select in the displayed list.
The Outline View component invokes and displays the outline of the document.
In this outline, the 'h1' and 'h2' elements in HTML and the text in SVG are displayed.
- To reset the document view to its original state:
- Click any area where the outline is displayed.
- Select
"Change Vocabulary Component" at the upper right corner of the screen.
- Select in the displayed list.
The document is displayed by the XHTML component, which is the original viewing method.
Top of this chapter
Top of this page
Switch to the screen that lets you check the XML source code of the entire document.
- Select .
The XML source code of the entire document is displayed in a new window.
- When the XML source code has been checked, click .
The dialog box closes.
Top of this chapter
Top of this page
Save the created document.
- Select .
-
Set the folder, type the file name, and then click .
The document is saved as the typed file name under the setting folder.
Top of this chapter
Top of this page