xfy Basic Edition Operation Manual
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 Basic Edition is installed.
To create the document:
- Creating a New Document
- Inputting Text - Editing XHTML -
- Inputting a Figure - 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.
- Double click "XHTML" 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 page
Inputting Heading1
Input the title of this document, "Company Profile", in line 1.
Set the paragraph type of line 1 to "Heading1", which corresponds to h1 element of XHTML.
- Click the Document View Area.
- Select [Format - Paragraph Type - Heading1].
- Input "Company Profile", and press the Enter key.
Inputting Heading2
Set the paragraph type of line 2 and the subsequent lines to "Heading2", which corresponds to h2 element of XHTML, and input the following contents.
- About Us
- Business Contents
- At a Glance
- Location Map
- Select [Format - Paragraph Type - Heading2].
-
Input "About Us", and press the Enter key.
By pressing the Enter key, a new line of the same paragraph type is inserted.
-
Likewise, input the other contents, and press the Enter key.
Inputting Text to Paragraph
Input a paragraph(standard paragraph) under "About Us", and input the next sentence. A paragraph corresponds to 'p' element in XHTML.
xfytec Information Systems was formed in 1996, and since then, we are constantly working to create unique, new technologies.
- Move the cursor to the position where the paragraph is to be inserted.
Here, move the cursor to the beginning of the next line of "About Us".
- Select [Insert - Paragraph - Paragraph].
A paragraph is inserted.
- Input "xfytec Information Systems was formed in 1996, and ..."
-
Here, don't press the Enter key after inputting the sentence. If you press the Enter key, an extra paragraph will be created.
Top of this page
Input the following contents under "Business Contents" as an "Unordered list", which corresponds to ul element of XHTML.
- software development
- system support
- IT training
- Move the cursor to the position where the list is to be inserted.
Here, move the cursor to the beginning of the next line of "Business Contents".
- Select [Insert - Paragraph - Paragraph].
A paragraph is inserted.
- Select [Format - List - Unordered List].
The current paragraph becomes the first item of an unordered list, and a bullet point is inserted at the beginning of the line.
- Input "software development" as the first item.
- Press the Enter key.
A new line with a bullet point at the beginning, which is the next item of the list, is inserted.
- Input items in order.

Top of this page
Under "At a Glance", input the following table that describes company information.
| company name | xfytec Information Systems |
| founded | 1996 |
| annual revenue | $4.7million(2004) |
- Move the cursor to the position where the paragraph is to be inserted.
Here, move the cursor to the beginning of the next line of "At a Glance".
-
Select [Table - Insert Table].
The [Insert Table] dialog box is displayed.
-
Set as the following table, and click [OK]. If the width of table is set to off, the width will be set automatically according to the content input.
| Number of Lines | 3 |
| Number of Columns | 2 |
| Width of Table | off |
-
Input "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.
-
Input "xfytec Information Systems" in the right cell of line 1, and press the Tab key.
The cursor moves to the left cell of line 2.
- Input the contents in the line 2 and the subsequent lines in the same way as for the first line.
Top of this page
Change the style of "xfytec Information Systems" under "About Us" to bold.
- Select "xfytec Information Systems".
- Click
[Bold] on the tool bar.
The text "xfytec Information Systems" is displayed in bold style.
- To reset bold
- Select the range of the text to reset bold.
- Click
[Bold] on the tool bar.
The bold style is reset.
Top of this page
Set the line under "Location Map" as a paragraph, and insert an SVG canvas in the paragraph. To create SVG figures in an XHTML document, an SVG canvas needs to be inserted.
- Move the cursor to the beginning of the next line of "Location Map".
- Select [Format - Paragraph Type - Paragraph] and set a paragraph type to the paragraph.
-
Select [Insert - XML Object - Create].
The [Create XML Object] dialog box is displayed.
-
Select [Create from Template] in the [How To Create] field and click [Browse].
The [Choose Document Template] dialog box is displayed.
-
Select "SVG" in the Document Template list and click [Open].
"SVG" is input in the [Template Name] field of the [Create XML Object] dialog box.
-
Click [OK].
A blank SVG canvas is inserted at the cursor position.
-
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 page
Set the width of the SVG canvas to 600 pixels and the height to 300 pixels.
-
Select [View - Resize].
The [Resize] dialog box is displayed.
-
In the [Resize] dialog box, set the width to 600 and the height to 300, then click [OK].
The size of the SVG canvas is changed.
Top of this page
Draw figures in the SVG canvas.
Drawing Lines
Draw lines which represent roads.
- Select [Draw - Change Drawing Style].
The [Change Drawing Style] dialog box is displayed.
- Set the stroke as the following table, and click [OK].
Stroke
| Stroke Drawing | Draw |
| Width | 15 |
| Line Style |  |
| Caps | Butt |
| Join | Miter |
| Color | Gray |
| Opacity | 100% |
- Select [Draw - Line].
- 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% |
Drawing a Circle
Draw four circles which represent an interchange. Here, draw a circle.
-
Select [Draw - Change Drawing Style].
The [Change Drawing Style] dialog box is displayed.
- Set the stroke as the following table, and click [OK].
Stroke
| Stroke Drawing | Draw |
| Width | 15 |
| Line Style |  |
| Caps | Butt |
| Join | Miter |
| Color | Gray |
| Opacity | 100% |
- Select [Draw - Circle].
- Press the mouse button at the center of the circle.
- Hold and drag it while examining a reference line drawn between the start point and the current mouse position.
- Release the button to draw the circle.

Copying a Figure
Copy the circle drawn, and draw four circles representing an interchange.
-
Select [Draw - 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.
Changing the Order of Overlapped Figures
Make the purple line representing the highway be displayed over the four circles representing the interchange.
-
Select [Draw - Select] and click the purple line.
and
are shown around the line, and the figure is selected.
-
Select [Shape - Order - Bring to front].
The purple line is displayed in the foreground.
Drawing a Rectangle
Draw the rectangle which represents the destination.
-
Select [Draw - Change Drawing Style].
The [Change Drawing Style] dialog box is displayed.
- Set the stroke as the following table, and click [OK].
Fill
| Fill Drawing | Draw |
| Rule | Nonzero |
| Color | Purple |
| Opacity | 100% |
- Select [Draw - Rectangle].
- 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 page
Input the following text in the figure in the SVG canvas.
- Kakinoki I.C.
- Central highway
- to downtown
- to airport
- here
- Select [Draw - Change Drawing Style].
The [Change Drawing Style] dialog box is displayed.
- Set the stroke as the following table, and click [OK].
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 [Draw - Text].
- Click on the position where you want to input text.
A cursor appears there.
- Type in your desired text.
-
Repeat steps 4 through 5 to input all text.
Top of this page
In xfy Basic Edition, one document can be displayed by various methods.
Display the outline indicating the overview of the document.
- Click on the document in any area other than the SVG canvas.
- Select [Tool - Change Component].
The [xfy Component Chooser] dialog box is displayed.
-
Select "Outline View" in the [Component List] and click [Apply].
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.
-
Click [Close].
The [xfy Component Chooser] dialog box is closed.
- To reset the document view to its original state:
- Click any area where the outline is displayed.
- Select [Tool - Change Component].
The [xfy Component Chooser] dialog box is displayed.
-
Select "XHTML" in the [Component List] and click [Apply].
The document is displayed by the XHTML component, which is the original viewing method.
Top of this page
Switch to the screen that lets you check the XML source code of the entire document.
- Select [View - Source].
The XML source code of the entire document is displayed in a new window.
- When the XML source code has been checked, click [Close].
The dialog box closes.
Top of this page
Save the created document.
- Select [File - Save as].
-
Set the folder, input the file name, and then click [Save].
The document is saved as the inputted file name under the setting folder.
Top of this page