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

Posts Tagged web

Using For-each Loops In XSL Stylesheets

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

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: , , , ,

AJAX Training Can Advance Your Web Development Career

AJAX is one of the hottest internet technologies around. The best way to understand Ajax is to get an idea of what you can achieve with it, what it can do for your web development. Principally, Ajax can help you develop web pages and websites that function and respond like desktop applications. The Ajax technology achieves this by working away in the background, grabbing data from a server and then displaying it as it’s needed. As internet access speeds continue to increase, there will come a time when the user will not be able to perceive any difference between the performance of a web application and that of regular desktop software.

If you are an experienced web developer but have not started to delve into the world of Ajax, now is a good time to seriously consider finding some form of Ajax training.

Ajax-powered webpages differ from classic server-side pages in one important regard: with the classic page, to retrieve data from the server, the user normally has to submit information via the form and then wait for the page to reload and display a set of search results. With Ajax, interaction with the server can take place in a much more subtle manner, often without a form having to be submitted or the page having to reload.

The term Ajax is short for Asynchronous JavaScript and XML and Ajax involves the use of several web technologies. First of all, we have HTML and CSS, the raw material of which web pages are constructed. HTML defines the structure of the page content while CSS controls the layout and formatting of those elements. Next, we have XML data sources residing on a server. XML is a neutral standard for describing and storing information. Then there is JavaScript, the main scripting language used to add interactivity to web pages, which is used to fetch data from XML sources and use it to update the web page.

The most important element in JavaScript’s Ajax capabilities is the use of the XMLHttpRequest object which is used to send requests to the server without the need of refreshing the page. The key feature of this process is that it is asynchronous. This means that when a request is made for data from the server, the browser doesn’t need to wait for the data to come back. Therefore the page continues to function and when the data has been retrieved, the necessary parts of the page are updated.

Are you a web developer looking to expand you skill-set? If you are, you need look no further than Ajax. Ajax training will definitely enable you to take your web development expertise to a new level.

Are you looking for training on Using AJAX techniques to build websites. We offer Microsoft ASP.NET AJAX training in London and all over the UK?


Tags: , , , ,

Powered by Yahoo! Answers