Rather than writing RecipeBook XML documents by hand using a text editor like notepad or vi, it is often conveinent to use an XML editor with a point-and-click graphical user interface (GUI). This tutorial covers the use of one such editor, XMLMind's XML Editor (XXE), to create RecipeBook XML documents.
XXE is Java-based and will run on almost any platform that supports Sun Java version 1.4 or better. This means you can edit your RecipeBook XML recipes using Windows, Linux or Mac OS. If your computer does not have Java installed you will need to visit http://java.sun.com and download the J2SE Java Runtime Environment (JRE) for your operating system.
The personal edition of XMLMind's XML editor is available as a free download and comes with a very liberal end-user license. You can find XXE on XMLMind's product page at: http://www.xmlmind.com/products.html. If you plan to convert your recipes to HTML, PDF or Rich Text you may also want to download XMLMind's FO Converter (XFC) at this time.
Using the Windows setup binary is very easy and can be accomplished quickly by accepting the default directory locations. Other operating systems require using the tar+gzip archive which takes a few more steps.
To install using the tar+gzip archive.
Which ever method of installation you decide on, make sure that you are logged in as a user with sufficient privileges to accomplish the task.
The XML Editor needs the RecipeBook XML Document Type Definition (DTD) and style sheets and config files to properly edit recipes. All of this can be obtained from the RecipeBook XML web site.
Follow these steps to install.
You are now ready to use XXE to edit your RecipeBook XML recipes.
Creating a new recipe is easy once you get the hang of using the XXE. A short step-by-step example is given below.
Use the XXE help file and product documentation to learn more about how to use the XML Editor.
There are two possibilities for viewing your completed recipe. One option is to view native RecipeBook XML in an XML capable browser like Mozilla Firefox or Internet Explorer. Simply place the recipebook.xsl style sheet in the same directory as the recipe and view the recipe the browser of choice. The other option is to convert the recipe to another format like HTML, PDF or Rich Text using the appropriate RecipeBook XSL style sheet with XMLMind's FO Converter.