Rss Feed
Tweeter button
Facebook button
Technorati button
Reddit button
Myspace button
Linkedin button
Delicious button
Digg button
Flickr button
Stumbleupon button
Newsvine button

Posts Tagged computer tips

Using Master Pages Adobe InDesign

Welcome back! You come here frequently I appreciate you visiting my blog. Try the RSS feed to get instant updates. Cheers!

Adobe InDesign is traditionally only used by designers; but what happens when you decide that your admin staff need to use the software as well? In this article, we will look at some of the finer points of using master pages in InDesign. Firstly, it is possible to base a new master page on an existing one. From the Pages panel menu, choose New Master Page and, when the New Master dialog appears, choose the name of an existing master page from the drop-down menu labelled “Based on Master”.

The new master will not only inherit all of the elements on the existing master, it will also be linked to it; so that, if you make a change to the elements on the original master page, those changes will be reflected on the new one. It’s very easy to tell if a master is based on another master. The page icon of any master page which is based on another master will display the letter prefix of the parent master page.

In InDesign, elements inherited from a master page are not normally editable on any child document or master pages. However, in both cases master elements can be unlocked on the child page by holding down the Control and Shift keys and clicking on the master item.

InDesign also allows users to base a new master page on a document page or spread. To do highlight a document page or spread and choose Save As Master from the Pages panel menu. It is also sometimes useful to create a master page by duplicating an existing one. Just highlight the master in question and choose Duplicate Master Spread from the Pages panel menu.

Master pages created in one document can be transferred into another document in much the same way as styles and swatches. Choose Load Master Pages from the Pages panel menu then browse for the document that contains the required master(s). Please note, however, that InDesign always imports all of the master pages that the document contains. It does not offer the option of selecting only certain items as is the case with swatches and styles. If one of the master pages being important has the same name as an existing master page, a dialog box will appear offering you the option of replacing the existing master page or renaming the new one.

Do you need to learn Adobe InDesign CS4? We offer Adobe InDesign tuition in London and all over the UK.


Tags: , , , ,

Using For-each Loops In XSL Stylesheets

XSLT is an XML-related technology which is used to transform XML data. XML file can be used to set the ground-rules for a given body of data and to describe the data itself. XSL allows us to take that input XML data and convert it into information which can be displayed in a web browser window or opened with a text editor. It can also be used to create an XML file which is a modified version of an input XML file.

When displaying elements in a browser window, the XSL elements which allow us to loop through an XML tree and carry out decision-making really come into their own. One of the key methods used in XSL for looping through all occurrences of a given XML element is the “For-each” element. This uses the “select” attribute to specify which XML element is to be used in the loop. The “For-each” element uses both an opening and a closing tag and any lines of code placed between the opening and closing tags will be repeated each time the element specified in the “select” attribute is encountered in the XML file.

For example, let’s say we have an XML file containing a list of companies and the addresses of their websites. Let’s also say that the element which we will be targeting in the XSL “For-each” statement is called “company” and that, within each company element, we have a “name”, “telephone” and “website” element. Before beginning our “For-each” loop, we could place the opening tag of an HTML “ul” element (an unordered or bulleted list).

Inside the “For-each” loop, we could output an HTML “li” element and, between its opening and closing tags, output the contents of the “name” and “telephone” elements from the XML file. The data in the “website” element in the input XML could be used to convert the “name” into a clickable link.

As regards the appearance of the data in the resulting HTML output, this would be controlled by a linked CSS file. CSS can be used to format the output in any way we desire, so our bulleted list can take on pretty much any appearance we care to give it.

Need to learn XSL Stylesheets? We offer XML classes in London and all over the UK.


Tags: , , , ,

Powered by Yahoo! Answers