This is the xhtmlambda Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 08:07:12 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
xhtmlambda
THe XHTMLambda System.
Another HTML/XHTML/XML generation (and parsing) system in Common Lisp.
Marco Antoniotti
BSD
cl-unicode
(system).
xhtmlambda-pkg.lisp
(file).
xhtmlambda.lisp
(file).
utilities
(module).
xml-parser.lisp
(file).
impl-dependent
(module).
Modules are listed depth-first from the system components tree.
xhtmlambda/utilities
xhtmlambda-pkg.lisp
(file).
xhtmlambda
(system).
streams-utilities.lisp
(file).
xhtmlambda/impl-dependent
xhtmlambda-pkg.lisp
(file).
xhtmlambda
(system).
Files are sorted by type and then listed depth-first from the systems components trees.
xhtmlambda/xhtmlambda.asd
xhtmlambda/xhtmlambda-pkg.lisp
xhtmlambda/xhtmlambda.lisp
xhtmlambda/utilities/streams-utilities.lisp
xhtmlambda/xml-parser.lisp
xhtmlambda/xhtmlambda.lisp
xhtmlambda-pkg.lisp
(file).
xhtmlambda
(system).
*default-html-sexp-syntax*
(special variable).
*html5-no-self-closing-tag*
(special variable).
a
(macro).
abbr
(macro).
address
(macro).
area
(macro).
article
(macro).
aside
(macro).
audio
(macro).
b
(macro).
base
(macro).
bdo
(macro).
body
(macro).
br
(macro).
button
(macro).
canvas
(macro).
caption
(macro).
cite
(macro).
code
(macro).
col
(macro).
colgroup
(macro).
command
(macro).
comment
(macro).
datagrid
(macro).
datalist
(macro).
datatemplate
(macro).
dd
(macro).
del
(macro).
details
(macro).
dfn
(macro).
dialog
(macro).
div
(macro).
dl
(macro).
document
(macro).
dt
(macro).
em
(macro).
embed
(macro).
event-source
(macro).
fieldset
(macro).
figure
(macro).
footer
(macro).
form
(macro).
frame
(macro).
frameset
(macro).
h1
(macro).
h2
(macro).
h3
(macro).
h4
(macro).
h5
(macro).
h6
(macro).
head
(macro).
header
(macro).
hr
(macro).
html
(macro).
html-sexp-syntax
(type).
htmlise
(macro).
htmlize
(macro).
htmlize*
(function).
i
(macro).
iframe
(macro).
img
(macro).
input
(macro).
ins
(macro).
is-a
(function).
is-abbr
(function).
is-address
(function).
is-area
(function).
is-article
(function).
is-aside
(function).
is-audio
(function).
is-b
(function).
is-base
(function).
is-bdo
(function).
is-body
(function).
is-br
(function).
is-button
(function).
is-canvas
(function).
is-caption
(function).
is-cite
(function).
is-code
(function).
is-col
(function).
is-colgroup
(function).
is-command
(function).
is-comment
(function).
is-datagrid
(function).
is-datalist
(function).
is-datatemplate
(function).
is-dd
(function).
is-del
(function).
is-details
(function).
is-dfn
(function).
is-dialog
(function).
is-div
(function).
is-dl
(function).
is-document
(function).
is-dt
(function).
is-em
(function).
is-embed
(function).
is-event-source
(function).
is-fieldset
(function).
is-figure
(function).
is-footer
(function).
is-form
(function).
is-frame
(function).
is-frameset
(function).
is-h1
(function).
is-h2
(function).
is-h3
(function).
is-h4
(function).
is-h5
(function).
is-h6
(function).
is-head
(function).
is-header
(function).
is-hr
(function).
is-html
(function).
is-i
(function).
is-iframe
(function).
is-img
(function).
is-input
(function).
is-ins
(function).
is-kbd
(function).
is-label
(function).
is-legend
(function).
is-li
(function).
is-link
(function).
is-m
(function).
is-main
(function).
is-map
(function).
is-menu
(function).
is-meta
(function).
is-meter
(function).
is-nav
(function).
is-nest
(function).
is-noframes
(function).
is-noscript
(function).
is-object
(function).
is-ol
(function).
is-optgroup
(function).
is-option
(function).
is-output
(function).
is-p
(function).
is-param
(function).
is-pre
(function).
is-progress
(function).
is-q
(function).
is-rule
(function).
is-samp
(function).
is-script
(function).
is-section
(function).
is-select
(function).
is-small
(function).
is-source
(function).
is-span
(function).
is-strong
(function).
is-style
(function).
is-sub
(function).
is-sup
(function).
is-table
(function).
is-tbody
(function).
is-td
(function).
is-textarea
(function).
is-tfoot
(function).
is-th
(function).
is-thead
(function).
is-time
(function).
is-title
(function).
is-tr
(function).
is-tt
(function).
is-ul
(function).
is-var
(function).
is-video
(function).
kbd
(macro).
label
(macro).
legend
(macro).
li
(macro).
link
(macro).
m
(macro).
main
(macro).
menu
(macro).
meta
(macro).
meter
(macro).
nav
(macro).
nest
(macro).
noframes
(macro).
noscript
(macro).
object
(macro).
ol
(macro).
optgroup
(macro).
option
(macro).
output
(macro).
p
(macro).
param
(macro).
pre
(macro).
print-object
(method).
progress
(macro).
q
(macro).
rule
(macro).
samp
(macro).
script
(macro).
section
(macro).
select
(macro).
small
(macro).
source
(macro).
span
(macro).
strong
(macro).
style
(macro).
sub
(macro).
sup
(macro).
table
(macro).
tbody
(macro).
td
(macro).
textarea
(macro).
tfoot
(macro).
th
(macro).
thead
(macro).
title
(macro).
tr
(macro).
tt
(macro).
ul
(macro).
var
(macro).
video
(macro).
with-html-syntax
(macro).
with-html-syntax-output
(macro).
%element
(function).
*def-el-v*
(special variable).
*downcase-names*
(special variable).
*html-tags*
(special variable).
*html-tags-db*
(special variable).
*html5-void-elements*
(special variable).
*quote-character*
(special variable).
*xhtml-indent*
(special variable).
*xhtml-pd*
(special variable).
copy-element
(function).
copy-tag
(function).
def-element
(macro).
element
(generic function).
element
(structure).
element-attributes
(reader).
element-content
(reader).
element-p
(function).
element-tag
(reader).
ensure-evaluation
(function).
is-html-content
(function).
is-html-sexp
(generic function).
is-html-tag
(function).
make-tag
(function).
map
(macro).
pprint-xhtml
(function).
pprint-xhtml-comment
(function).
pprint-xhtml-document
(function).
pprint-xhtml-html
(function).
pprint-xhtml-pre
(function).
pprint-xhtml-string
(function).
pprint-xhtml-symbol
(function).
rewrite
(generic function).
rewrite-form
(function).
rewrite-xhtml-form
(function).
set-quote-character
(function).
splice-element-sublists
(function).
t_categories
(reader).
t_content
(reader).
t_context
(reader).
t_name
(reader).
t_specific-attributes
(reader).
tag
(structure).
tag-categories
(function).
tag-content
(function).
tag-context
(function).
tag-info
(function).
tag-name
(function).
tag-p
(function).
tag-specific-attributes
(function).
time
(macro).
translate-xhtml-attributes
(function).
translate-xhtml-sexp
(generic function).
xhtml-parse-error
(condition).
xhtml-parse-error-msg
(reader method).
xhtml-parse-error-tag
(reader method).
xhtmlambda/utilities/streams-utilities.lisp
utilities
(module).
*backlog-length*
(special variable).
*backtraceable-streams*
(special variable).
*whitespace-characters*
(special variable).
backlog-length
(type).
clean-stream-backlog
(function).
clean-streams-backlogs
(function).
get-char
(function).
look-at-char
(function).
stream-backlog
(function).
(setf stream-backlog)
(function).
unget-char
(function).
unget-chars
(function).
with-backlogged-stream
(macro).
xhtmlambda/xml-parser.lisp
utilities
(module).
xhtmlambda
(system).
parse
(generic function).
*buffer-collector*
(special variable).
*eof*
(special variable).
alts
(function).
att-value
(function).
attdef
(function).
attlistdecl
(function).
attribute*
(function).
atttype
(function).
cdata
(function).
cdend
(function).
cdsect
(function).
cdstart
(function).
char-ref
(function).
character-buffer
(type).
chardata
(function).
children
(function).
collect-char
(function).
collect-string
(function).
comment-rule
(function).
content
(function).
contentspec
(function).
copy-buffer
(function).
declsep
(function).
defaultdecl
(function).
doctypedecl
(function).
document-rule
(function).
element-rule
(function).
element-tag-rule
(function).
elementdecl
(function).
encname
(function).
encodingdecl
(function).
end-tag-name
(function).
entity-ref
(function).
entity-value
(function).
entitydecl
(function).
entitydef
(function).
enumeratedtype
(function).
enumeration
(function).
eq-rule
(function).
etag
(function).
external-id
(function).
gedecl
(function).
intsubset
(function).
is-character
(function).
is-empty-tag
(function).
is-eof
(function).
is-latin-alphabetic-character
(function).
is-latin-character
(function).
is-name-char
(function).
is-name-start-char
(function).
is-pubid-char
(function).
is-white-space
(function).
markupdecl
(function).
misc
(function).
misc*
(function).
mixed
(function).
name
(function).
name-char
(function).
name-start-char
(function).
ncs
(function).
ndatadecl
(function).
new-buffer
(function).
nmtoken
(function).
notationdecl
(function).
notationtype
(function).
pedecl
(function).
pedef
(function).
pereference
(function).
pi-rule
(function).
prolog
(function).
pubid-char
(function).
pubid-literal
(function).
public-id
(function).
read-char=
(function).
read-chars=
(function).
reference
(function).
reset-buffer
(function).
rest-ncs
(function).
s
(function).
sddecl
(function).
seqs
(function).
start-tag-name
(function).
stringtype
(function).
system-literal
(function).
tokenizedtype
(function).
versioninfo
(function).
white-space
(function).
xmldecl
(function).
Packages are listed by definition order.
it.unimib.disco.ma.xhtmlambda
The XHTMLambda Package.
Yet another HTML/XHTML/XML producing (and parsing) library.
xhtmlambda
xhtmlambda
<
common-lisp
.
*default-html-sexp-syntax*
(special variable).
*html5-no-self-closing-tag*
(special variable).
a
(macro).
abbr
(macro).
address
(macro).
area
(macro).
article
(macro).
aside
(macro).
audio
(macro).
b
(macro).
base
(macro).
bdo
(macro).
body
(macro).
br
(macro).
button
(macro).
canvas
(macro).
caption
(macro).
cite
(macro).
code
(macro).
col
(macro).
colgroup
(macro).
command
(macro).
comment
(macro).
datagrid
(macro).
datalist
(macro).
datatemplate
(macro).
dd
(macro).
del
(macro).
details
(macro).
dfn
(macro).
dialog
(macro).
div
(macro).
dl
(macro).
document
(macro).
dt
(macro).
em
(macro).
embed
(macro).
event-source
(macro).
fieldset
(macro).
figure
(macro).
footer
(macro).
form
(macro).
frame
(macro).
frameset
(macro).
h1
(macro).
h2
(macro).
h3
(macro).
h4
(macro).
h5
(macro).
h6
(macro).
head
(macro).
header
(macro).
hr
(macro).
html
(macro).
html-sexp-syntax
(type).
htmlise
(macro).
htmlize
(macro).
htmlize*
(function).
i
(macro).
iframe
(macro).
img
(macro).
input
(macro).
ins
(macro).
is-a
(function).
is-abbr
(function).
is-address
(function).
is-area
(function).
is-article
(function).
is-aside
(function).
is-audio
(function).
is-b
(function).
is-base
(function).
is-bdo
(function).
is-body
(function).
is-br
(function).
is-button
(function).
is-canvas
(function).
is-caption
(function).
is-cite
(function).
is-code
(function).
is-col
(function).
is-colgroup
(function).
is-command
(function).
is-comment
(function).
is-datagrid
(function).
is-datalist
(function).
is-datatemplate
(function).
is-dd
(function).
is-del
(function).
is-details
(function).
is-dfn
(function).
is-dialog
(function).
is-div
(function).
is-dl
(function).
is-document
(function).
is-dt
(function).
is-em
(function).
is-embed
(function).
is-event-source
(function).
is-fieldset
(function).
is-figure
(function).
is-footer
(function).
is-form
(function).
is-frame
(function).
is-frameset
(function).
is-h1
(function).
is-h2
(function).
is-h3
(function).
is-h4
(function).
is-h5
(function).
is-h6
(function).
is-head
(function).
is-header
(function).
is-hr
(function).
is-html
(function).
is-i
(function).
is-iframe
(function).
is-img
(function).
is-input
(function).
is-ins
(function).
is-kbd
(function).
is-label
(function).
is-legend
(function).
is-li
(function).
is-link
(function).
is-m
(function).
is-main
(function).
is-map
(function).
is-menu
(function).
is-meta
(function).
is-meter
(function).
is-nav
(function).
is-nest
(function).
is-noframes
(function).
is-noscript
(function).
is-object
(function).
is-ol
(function).
is-optgroup
(function).
is-option
(function).
is-output
(function).
is-p
(function).
is-param
(function).
is-pre
(function).
is-progress
(function).
is-q
(function).
is-rule
(function).
is-samp
(function).
is-script
(function).
is-section
(function).
is-select
(function).
is-small
(function).
is-source
(function).
is-span
(function).
is-strong
(function).
is-style
(function).
is-sub
(function).
is-sup
(function).
is-table
(function).
is-tbody
(function).
is-td
(function).
is-textarea
(function).
is-tfoot
(function).
is-th
(function).
is-thead
(function).
is-time
(function).
is-title
(function).
is-tr
(function).
is-tt
(function).
is-ul
(function).
is-var
(function).
is-video
(function).
kbd
(macro).
label
(macro).
legend
(macro).
li
(macro).
link
(macro).
m
(macro).
main
(macro).
menu
(macro).
meta
(macro).
meter
(macro).
nav
(macro).
nest
(macro).
noframes
(macro).
noscript
(macro).
object
(macro).
ol
(macro).
optgroup
(macro).
option
(macro).
output
(macro).
p
(macro).
param
(macro).
parse
(generic function).
pre
(macro).
progress
(macro).
q
(macro).
rule
(macro).
samp
(macro).
script
(macro).
section
(macro).
select
(macro).
small
(macro).
source
(macro).
span
(macro).
strong
(macro).
style
(macro).
sub
(macro).
sup
(macro).
table
(macro).
tbody
(macro).
td
(macro).
textarea
(macro).
tfoot
(macro).
th
(macro).
thead
(macro).
title
(macro).
tr
(macro).
tt
(macro).
ul
(macro).
var
(macro).
video
(macro).
with-html-syntax
(macro).
with-html-syntax-output
(macro).
%element
(function).
*backlog-length*
(special variable).
*backtraceable-streams*
(special variable).
*buffer-collector*
(special variable).
*def-el-v*
(special variable).
*downcase-names*
(special variable).
*eof*
(special variable).
*html-tags*
(special variable).
*html-tags-db*
(special variable).
*html5-void-elements*
(special variable).
*quote-character*
(special variable).
*whitespace-characters*
(special variable).
*xhtml-indent*
(special variable).
*xhtml-pd*
(special variable).
alts
(function).
att-value
(function).
attdef
(function).
attlistdecl
(function).
attribute*
(function).
atttype
(function).
backlog-length
(type).
cdata
(function).
cdend
(function).
cdsect
(function).
cdstart
(function).
char-ref
(function).
character-buffer
(type).
chardata
(function).
children
(function).
clean-stream-backlog
(function).
clean-streams-backlogs
(function).
collect-char
(function).
collect-string
(function).
comment-rule
(function).
content
(function).
contentspec
(function).
copy-buffer
(function).
copy-element
(function).
copy-tag
(function).
declsep
(function).
def-element
(macro).
defaultdecl
(function).
doctypedecl
(function).
document-rule
(function).
element
(generic function).
element
(structure).
element-attributes
(reader).
element-content
(reader).
element-p
(function).
element-rule
(function).
element-tag
(reader).
element-tag-rule
(function).
elementdecl
(function).
encname
(function).
encodingdecl
(function).
end-tag-name
(function).
ensure-evaluation
(function).
entity-ref
(function).
entity-value
(function).
entitydecl
(function).
entitydef
(function).
enumeratedtype
(function).
enumeration
(function).
eq-rule
(function).
etag
(function).
external-id
(function).
gedecl
(function).
get-char
(function).
intsubset
(function).
is-character
(function).
is-empty-tag
(function).
is-eof
(function).
is-html-content
(function).
is-html-sexp
(generic function).
is-html-tag
(function).
is-latin-alphabetic-character
(function).
is-latin-character
(function).
is-name-char
(function).
is-name-start-char
(function).
is-pubid-char
(function).
is-white-space
(function).
look-at-char
(function).
make-tag
(function).
map
(macro).
markupdecl
(function).
misc
(function).
misc*
(function).
mixed
(function).
name
(function).
name-char
(function).
name-start-char
(function).
ncs
(function).
ndatadecl
(function).
new-buffer
(function).
nmtoken
(function).
notationdecl
(function).
notationtype
(function).
pedecl
(function).
pedef
(function).
pereference
(function).
pi-rule
(function).
pprint-xhtml
(function).
pprint-xhtml-comment
(function).
pprint-xhtml-document
(function).
pprint-xhtml-html
(function).
pprint-xhtml-pre
(function).
pprint-xhtml-string
(function).
pprint-xhtml-symbol
(function).
prolog
(function).
pubid-char
(function).
pubid-literal
(function).
public-id
(function).
read-char=
(function).
read-chars=
(function).
reference
(function).
reset-buffer
(function).
rest-ncs
(function).
rewrite
(generic function).
rewrite-form
(function).
rewrite-xhtml-form
(function).
s
(function).
sddecl
(function).
seqs
(function).
set-quote-character
(function).
splice-element-sublists
(function).
start-tag-name
(function).
stream-backlog
(function).
(setf stream-backlog)
(function).
stringtype
(function).
system-literal
(function).
t_categories
(reader).
t_content
(reader).
t_context
(reader).
t_name
(reader).
t_specific-attributes
(reader).
tag
(structure).
tag-categories
(function).
tag-content
(function).
tag-context
(function).
tag-info
(function).
tag-name
(function).
tag-p
(function).
tag-specific-attributes
(function).
time
(macro).
tokenizedtype
(function).
translate-xhtml-attributes
(function).
translate-xhtml-sexp
(generic function).
unget-char
(function).
unget-chars
(function).
versioninfo
(function).
white-space
(function).
with-backlogged-stream
(macro).
xhtml-parse-error
(condition).
xhtml-parse-error-msg
(generic reader).
xhtml-parse-error-tag
(generic reader).
xmldecl
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
The default HTML syntax used in the SEXP-based coding of HTML.
The variable can take on the values of the type HTML-SEXP-SYNTAX,
i.e., :COMPACT or :STANDARD. The default is :COMPACT.
See Also:
Type HTML-SEXP-SYNTAX
The top level HTML element.
The HTMLISE macro.
The macro ’rewrites’ a form according to the SYNTAX switch. If it is
:COMPACT then all the forms are read as if they where written in the
abbreviated syntax, which is more useful for many forms without too
many attributes. Otherwise, the ’standard’ syntax is used, where the
attribute list must always be specified, even if (). The default for
the SYNTAX switch, which is held in the variable
*DEFAULT-HTML-SEXP-SYNTAX* is :COMPACT.
Arguments and Values:
XHTML-FORM : a Sexp representing some (X)HTML code.
SYNTAX : a HTML-SEXP-SYNTAX designator; defaults to *DEFAULT-HTML-SEXP-SYNTAX*
FORM : a FORM
Examples:
cl-prompt> (htmlise (:syntax :compact) (<:p (<:b "Compact syntax.")))
<p><b>Compact Syntax</b></p>
cl-prompt> (htmlise (:syntax :standard) (<:p () (<:b () "Standard syntax.")))
<p><b>Standard syntax</b></p>
cl-prompt> (htmlise () ((<:p :style "color: red") (<:b "Compact syntax.")))
<p style="color: red"><b>Compact Syntax</b></p>
See Also:
*default-html-sexp-syntax*, HTMLIZE, HTMLIZE*
The HTMLIZE macro.
Just a synonim for HTMLISE.
Notes:
The Bard is having precedence.
See Also:
HTMLISE, HTMLIZE*
Writes out a (X)HTML form to a stream.
The writing is done using the XHTMLambda pretty-print dispatch table,
which is used if PRINT-PRETTY is non-NIL. The HTML form is
represented using the appropriate SYNTAX.
Arguments and Values:
STREAM : a STREAM
PRINT-PRETTY : a generalized boolean; defaults to *print-pretty*
SYNTAX : a HTML-SEXP-SYNTAX value; defaults to *default-html-sexp-syntax*
FORM : a FORM
Examples:
cl-prompt> (<:with-html-syntax-output (*standard-output* :syntax :standard
:print-pretty t)
(<:p () (<:code () "for i in $ZZ do ...")))
<p>
<code>
for i in $ZZ do ...
</code>
</p>
<p><code>for i in $ZZ do ...</code></p>
See Also:
*default-html-sexp-syntax* and html-sexp-syntax
This is the functional equivalent of the HTMLISE macro.
See Also:
HTMLISE, HTMLIZE
Parse a XML source and returns a ’document’.
Notes:
This is an experimental parser for XML.
The (enumerated) type of ’syntaxes’ for the HTML Sexp-based representation.
The actual type is defined to be (MEMBER :COMPACT :STANDARD).
Each syntax style allows for different ways to write (X)HTML in Common Lisp code.
Examples:
:COMPACT
tag
(tag . body)
((tag . attribute) . body)
:STANDARD
tag
(tag attributes . body)
The ’quote’ character used in (X)HTML(5) string quoting.
The default is #\".
Setf the current ’quote’ character used in (X)HTML(5) string quoting.
Arguments and Values:
C : a character, either #’ or #\".
The ELEMENT constructor.
Serves as a ’factory’ for ELEMENT objects and as a hook for peri-call methods.
symbol
) (attributes list
) &rest content) ¶Rewrites a Sexp representing a (X)HTML element.
xhtml-parse-error
)) ¶msg
.
xhtml-parse-error
)) ¶tag
.
The XHTML Parse Error Condition.
This is the (sub)root of the parse errors related to (X)HTML, HTML5 and XML parsing.
The ELEMENT Structure.
This structure represents a minimal ’XML’ element with a TAG, a (LIST) of ATTRIBUTES and relative CONTENT.
The Tag Structure.
The tag structure contains (meta) information about a specific tag. Cfr. the HTML5 spec for the details on each field. Most of them are kept empty and for future use.
Jump to: | %
(
A B C D E F G H I K L M N O P Q R S T U V W X |
---|
Jump to: | %
(
A B C D E F G H I K L M N O P Q R S T U V W X |
---|
Jump to: | *
A C M N S T |
---|
Jump to: | *
A C M N S T |
---|
Jump to: | B C E F H I M P S T U X |
---|
Jump to: | B C E F H I M P S T U X |
---|