|Atomik Roundtrip 2.1: Tutorials||<< >>|
In this tutorial you will learn about creating and using Atomik Roundtrip rulesets, for formatting many different kinds of text in QuarkXPress.
A ruleset maps QuarkXPress styling elements to XML elements, so that when those elements are imported into QuarkXPress, they are automatically formatted. You are not required to use rulesets with Atomik Roundtrip, and if you don’t use a ruleset, the imported text will be given the styling of the text already in the box to which it was dragged.
The key stages in this tutorial are:
The objective of this tutorial is to provide an overview of how rulesets can be used to apply styling in QuarkXPress.
Note that the document is set up with many QuarkXPress styles already.
You will be presented with a dialog asking you to first select a DTD, and to provide a name for the ruleset. if you do not have any items listed in the DTD pop-up menu in this dialog, re-visit Tutorial 1, with regard to getting your Roundtrip Folder preferences set up again.
A DTD is a ‘Document Type Definition’, which is a description of the format of an XML file. Most XML files are written to conform to a DTD, and that DTD defines the structural rules which an XML file must obey. An XML file whose structure conforms to that defined in a DTD is known as valid XML, whereas XML which does not conform to a DTD structure (or is simply not associated with a DTD), but does have a correct arrangement of tags, is known as well formed XML. Atomik Import can read either valid or well formed XML (but only valid XML can have a ruleset applied to it).
5. You will then be asked to select an XML file to import with that ruleset, choose the file ‘RT_Tutorial3.xml’ from your Tutorials folder and click Import. Note; Cancel can be selected if you do not want to associate an XML file with the document at this stage.
Your new empty ruleset palette will be automatically displayed on screen, close the ruleset palette for now by clicking in the top corner. The Focus tab of the Roundtrip XML palette will display the DTD that the ruleset is referring to, the ruleset name and the XML file that has just been imported into the document.
The standard view of the DTD in the DTD tab is a hierarchical view of the DTD structure. For someDTDs, this structure could be very complex, which makes navigating the entire DTD tree laborious. Atomik Roundtrip will also allow you to view the DTD as an alphabetical list of elements, which is easier to navigate. Just right click (windows) or control click (mac) on the structure tab of the Roundtrip XML palette, and choose from the pop-up menu whether you wish to view the structture as ‘flat’ or ‘hierarchical’.
The Ruleset palette allows you to define the styling for any XML when placed on the page, depending on what DTD element that piece of XML corresponds to.
Select ‘03. Header’ from the menu. This style sheet is now associated with XML elements which have the <GameTitle> tag.
‘Characterdata’ isn’t really a child element, it simply refers to the data which belongs to the parent element, but not any of the other child elements. Apply the ‘Email’ and ‘URL’ character style sheets (respectively) from the ‘Character’ pop-up menu, to the ‘Email’ and ‘URL’ child elements of ‘Paragraph’, as you have already done with previous elements.
Don’t forget to click ‘Add’ (when you create a new rule) or ‘Save’ (when you change an existing rule) to save your changes.
Now try making some of your own edits to the ruleset, using the principles which have been described in this tutorial. You should avoid playing with the ‘Element is an image’ section of this dialog at this point, as this will be explained in detail in the following tutorial.
You’ll notice that existing XML that was already on the QuarkXPress page is not changed to the new styling. Try now dragging elements from some of the other ‘Review’ elements in the XML file : these elements will take on the new styling which you have defined.
Note that when you’re editing rulesets, all you have to do is to double click on the DTD reference (in the ‘DTD’ tab of the XML palette), and the ruleset palette will open up for whatever ruleset was applied to the XML which you have in your document. You don’t need to specially open the ruleset document up in order to access this palette. Once the ruleset palette has opened, rules can be added for more than one DTD element at a time can be added by selecting from the ‘Element’ drop down menu - you will automatically be prompted to save any changes you have made to the rules for the previous element that you may have edited.
Also note that whenever you import an XML file into Atomik Roundtrip, the last ruleset which you used is automatically selected, unless you choose a different one.
In this tutorial we have: