Download Latest Version clisp2xml_0.13.tar.gz (3.5 kB)
Email in envelope

Get an email when there's a new version of Clisp2xml

Home / 0.02
Name Modified Size InfoDownloads / Week
Parent folder
README 2011-05-07 2.3 kB
clisp2xml_0.02.tar.gz 2011-05-07 3.1 kB
Totals: 2 Items   5.4 kB 0
This file contains an c2x.cl file. This file converts a certain form clisp code to xml code.
there is another file , HTML5_Tags_list.cl. This file contains all tags available in HTML5.

You need to install the clisp in your computer.In debian , you can easily type in the follow command
$sudo apt-get install clisp
or 
you can find it here http://sourceforge.net/projects/clisp/files/clisp/2.49/clisp-2.49.tar.bz2/download in sourceforge

You can get details about format in the file c2x.cl. 
_________________________________________________


SYNOPSIS
	(c2x ,text-clisp :k ,k :p ,p :o ,o)
	(clisp2xml ,text-clisp :k ,k :p ,p :o ,o)
USGAGE
	you can just write in the format "(c2x alist)" change the alist with a list like (html (body : "the"))
	when starting the clisp , -modern option is recommanded to enable case-sensitive feature. i.e. type in 
	$clisp -modern
OPTIONS
	:k alist
	this option tells what tags you want to use and to transformed to the xml tags.you need to replace alist with your own list .
	the default list is HTML5_Tags_list. this list contains all HTML5 tags. once encountered  with symbol listed in alist, they will be transformed to 
	xml tags
  
	:p alist
	like the :k option , this option tells what prefixes to be used to transform.once encountered with symbols with prefixes listed in alist.they will be 
	transformed to xml.By default , alist will be '(xsl) 
EXAMPLES
	in ->
		(c2x (html : (head : (title : "welcome" ) (link 'REL "stylesheet" 'type "text/css" 'HREF "style.css" ))) :o t)
	or
	in ->
		(clisp2xml (html : (head : (title : "welcome" ) (link 'REL "stylesheet" 'type "text/css" 'HREF "style.css" ))) )
	out ->
		<html><head><title>welcome</title><link REL="stylesheet" type="text/css" HREF="style.css" /></head></html>     
		nil
	_______________________________________________
	in ->
		(c2x (html : (head : (title : "welcome" ) (link 'REL "stylesheet" 'type "text/css" 'HREF "style.css" ))) )
	out ->
		"<html><head><title>welcome</title><link REL=\"stylesheet\" type=\"text/css\" HREF=\"style.css\" /></head></html>"
	_______________________________________________
	in ->
		(c2x (xsl 'e 'we 23) :o t)
	out ->
		<xsl:e we="23" />
		nil
	________________________________________________

AUTHORS
	Fancey Ly <li3939108@gmail.com>
Source: README, updated 2011-05-07