DevShed - Roxen Challenger - An Introduction
★ wanayoo — archive 1999 http://www.devshed.com/Server_Side/Roxen/Introduction/page2.htmlNouvelle recherche | Portail wanayoo

Developer Shed
Thursday, 09.09.99  

HOME > SERVER SIDE > ROXEN > ARTICLE    SOURCE

Power Search
Free Newsletter:


Client Side
DHTML
Graphics
JavaScript

Server Side
Administration
ASP
JServ
MySQL
PHP
Python
Roxen
Zend
Zope
Web Hosting

Tools
HTML Editors
Graphic Editors
FTP Programs

Dev Talk
Forums
Mailing List
Brain Dump
Feedback

ClipScripts
Add script
Edit script


Advertise
on DevShed
JUMP TO:
> Overview
> Roxen Markup Language (RXML)
> Running a Website
> Programming With Roxen
> More Appetizers
Roxen Challenger - An Introduction
By Kai Voigt
123.org

June 09, 1999

Roxen Markup Language (RXML)

There a lot of tags and containers you can add to your documents. They will let you do simple things like printing the current time or the number of accesses to a document. More complex containers let you query databases or send mail from data that has been entered into a form.

How about inserting some information like the date, the browser version, the referring page.

Source code
The current time and date is <date>
and you're using <clientname>.
You came from <referrer> and the
last modification
to this document had been <modified>.
Result The current time and date is 19:11, June the 9th, 1999 and you're using Mozilla/4.07. You came from .. and the last modification to this document had been June 3rd.

If a document with such tags is requested, Roxen Challenger scans it and replaces the tags with the appropriate information. This doesn't only work for tags, but also for containers. Roxen can easily build tables from data. No more ugly HTML formating.

Source code
<tablify cellseparator="#">
apples # bananas # total
1.183  # 4.214   # 5.397
</tablify>
Result
apples bananas total
1.183 4.214 5.397

Roxen offers some more tags and containers to ease the pain of writing documents. You simply write high level commands and Roxen will translate them into HTML. This makes it easy to later edit your documents since you don't have to dig through tons of HTML code.

But Roxen not only does HTML for you, it also produces graphics on the fly. Ever wanted to get have some smart graphical text in your documents. <gtext> is your friend.

Source code
 <gtext scale=0.5>simple text</gtext>
 <br>
 <gtext scale=0.6 shadow=0.2,1
  rotate=10 scolor="#666666"
  fg="#3333cc">The time is <date time></gtext>
Result simple text
The time is 19:11

Have you realized that you can nest different containers? You can even do some programing in RXML. The <if> container will perform some conditional tests.

Source code
<if date=20000101 before>
 The year 2000 is yet to come.
</if>
<else>
 We obviously survived the Y2k problem.
</else>
Result The year 2000 is yet to come.

To see a list of available tags and containers, put <list-tags> into your document. To get some information about a special tag or container, use the help attribute: <obox help>. Additionally, the online documentation gives a lot of examples.



Click here to discuss this article
with other readers
. 14 comments.


Click here to receive updates on the latest articles.




Printer friendly versionPrinter friendly version

Tech News:
• Win2000 Back Door Discovered
• Memory Prices Rising Over Fears Of Shortage
• 9-9-99: Nothing Happened
• Apple's iBook Hits Japan
•  More news..
•  New! PHP & MySQL Books

Hot Forum Topics
Updating HTML tables with perl (using plain text files)
Module install without root permissions
Control Panels
Moving files in Perl
redirect,security message



Copyright © 1997-99 ngenuity. All rights reserved. Privacy Policy.