If tags
Welcome to the Lesson about RXML If tags!
As you surely know, a typical web page consists of text and HTML tags sent over the Internet
from a web server to a browser.
The HTML tags tell the browser how the page should be displayed.
The Roxen Macro Language, RXML, offers a number of tags which are used in the same way
as HTML tags, but extend the sometimes quite limited power of HTML.
One group of RXML tags are the If tags.
These tags make it possible to create dynamic pages based on conditions.
You could let authenticated users only get confidential information of a page or
optimize pages for different kinds of browsers.
If tags also make it possible to create web applications in RXML without using any
programming language.
Hopefully this brief presentation has made you curious about the powers of If tags.
If so, please don't hesitate to read the following Sections of this Lesson.
This Lesson is designed so that you may move around as you please.
Feel free to read only the Sections that interest you.
After reading this Lesson you will be able to program web pages using If tags and you will know
some of their many useful features. As in most creations, a tutorial isn't enough to become a master.
Only hard work will get you there...
Contents
-
<br clear="all" />
<pre>RXML run error: Emit dir couldn't find any contents.
| <emit glob="*" source="dir">
| <cset variable="var.if_else">
</pre>
-
introduces the logic of if-else statements in general to beginners in
programming. If you have some experience in programming, skip this Section.
-
<br clear="all" />
<pre>RXML run error: Emit dir couldn't find any contents.
| <emit glob="*" source="dir">
| <cset variable="var.syntax">
</pre>
-
introduces the syntax of the If tags, including tags, attributes and operators.
-
<br clear="all" />
<pre>RXML run error: Emit dir couldn't find any contents.
| <emit glob="*" source="dir">
| <cset variable="var.plugins">
</pre>
-
introduces the If plugins and briefly explains the usage of each plugin.
-
<br clear="all" />
<pre>RXML run error: Emit dir couldn't find any contents.
| <emit glob="*" source="dir">
| <cset variable="var.ex_1">
| <for from="1" step="1" to="4" variable="var.i">
</pre>
-
shows a very basic example of how to use <if> in a web page to get you started.
-
<br clear="all" />
<pre>RXML run error: Emit dir couldn't find any contents.
| <emit glob="*" source="dir">
| <cset variable="var.ex_2">
| <for from="1" step="1" to="4" variable="var.i">
</pre>
-
explains how to combine and use <if> and <define> to dynamically show
contents of a web page.
-
<br clear="all" />
<pre>RXML run error: Emit dir couldn't find any contents.
| <emit glob="*" source="dir">
| <cset variable="var.ex_3">
| <for from="1" step="1" to="4" variable="var.i">
</pre>
-
shows how to use <if user> plugin to dynamically view contents depending on the user that is logged in .
Some useful user entities will also be discussed as well as the <user> tag.
-
<br clear="all" />
<pre>RXML run error: Emit dir couldn't find any contents.
| <emit glob="*" source="dir">
| <cset variable="var.ex_4">
| <for from="1" step="1" to="4" variable="var.i">
</pre>
-
deals with the <if supports> plugin, used to match contents with the browser
requesting the page.
Also discusses the related page and client scopes.
In the
RXML run error: Emit dir couldn't find any contents.
| <emit glob="*" source="dir">
you will find the essence of this Lesson and references to
further sources of knowledge.
Detailed information about If tags is found in the Web Site Creator Manual.
|