The next ability of XSLT is sorting. That is putting a list of data into alphabetical order. This can be used on its own or in combination with the filtering methods discussed on the previous page.
Imagine a much larger list of movies in our XML file. (I am really lazy and don’t want to type [...]

Tags: , ,

Using XML and XSLT, this is really starting to look and feel like a database.
Wouldn’t it be interesting if we could filter out a specific bunch of records depending on an equation? Modifying the for-each command, this is actually possible!
A filter can understand four basic equations…

=
is equal to

!=
is not equal to

<
is less than

>
is greater than

We [...]

Tags: , ,

Normal CSS stylesheets may be used to control the display formatting of the information in an XML document. Here is a very simplified style sheet to use on our example…
title, age_group ,comments {display:block;}
title {font-size:14px; color:#f00; text-decoration:underline;}
The first line will make the contents of each element display in block formation. (it will take up the full [...]

Depending on who is teaching, different terms mean the same things…
The term elements means the tags.
The term attributes means properties.
<tag property=”value”>
Part of the previous example of XML looks like this :
<movie>
<title> Finding Nemo </title>
<age_group> Kids </age_group>
<comments> Fish are friends, not food. </comments>
</movie>
Each piece of information is in its own element (tag). The child elements (nested [...]

The first line of an XML page starts with :
<?xml version=”1.0″ encoding=”ISO-8859-1″?>
This lets the viewing browser know what type of coding and what language character set is being used. ISO-8859-1 happens to be the Latin-1/West European set which is the most common.
<?xml version=”1.0″ encoding=”ISO-8859-1″?>
<list_of_movies>
<movie>
<title> Finding Nemo </title>
<age_group> Kids </age_group>
<comments> Fish are friends, not food. </comments>
</movie>
<movie>
<title> [...]

XML
- XML stands for eXtensible Markup Language.
- XML is similar to HTML.
- XML tags are not pre-defined. You create and define them using DTD.
- XML documents are saved as text files with the .xml extension.
The main difference between HTML and XML is action. XML will discribe data, HTML will display data. XML will structure, store [...]

Tags: ,

All these letters, abbreviations, meanings and so forth. What do they all mean and how do we use them? Here are some basics breakdown :
First we will start at the top. The VERY top. SGML stands for Standard Generalized Markup Language. Simply put, it is the very root coding of coding. HTML is an [...]

Tags: , , ,
7 visitors online now
7 guests, 0 members
Max visitors today: 7 at 04:07 am GMT-3
This month: 31 at 03-10-2010 01:25 pm GMT-3
This year: 32 at 01-23-2010 07:03 pm GMT-3
All time: 63 at 11-14-2009 05:10 pm GMT-3