afnix-us-wax(3)

πŸ“¦
version 3.8.0 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– afnix-us-wax β€” web application extension service πŸ’–

okay bestie, gather round, because this is the manual page for afnix-us-wax(3) and it's literally the whole web app extension service. no cap. it's giving "i build XHTML pages for breakfast" energy and honestly? iconic. πŸ¦‹


✨ WEB APPLICATION EXTENSION SERVICE ✨

The Web Application Extension service is an original implementation that provides the support for low level HTTP transaction as well as high level XHTML page generation. The service combines various modules and provides access to the modern generation of web contents. πŸ’…

🌸 Page service objects 🌸

The XhtmlRoot class is the primary interface to generate xhtml page. The class is derived from the XmlRoot class and the Mimeobject. for this reason, creating a xhtml page is equivalent to add xml nodes to the page. The xhtml version is assumed to be 1.1.

πŸŽ€ Page creation πŸŽ€

The XhtmlRoot constructor takes a string argument which is the title page. When the root page is created, a head and body nodes are automatically created. Once created, it is possible to retrieve the head and body nodes from the root node. The head and body nodes are part of the html node which is automatically instantiated as a XhtmlHtml object. The html node can always be retrieved from the root node with the get-child xml method.

# create a new xhtml page
const page (afnix:wax:XhtmlRoot "AFNIX wax service")
# get the head node
const head (page:get-head)
# get the body node
const body (page:get-body)

The head and body nodes are part of the html node which is automatically instantiated as a XhtmlHtml object. The html node can always be retrieved from the root node with the get-child xml method. The root methods get-head and get-body are convenient methods that ease the page design by eliminating the references to the html node.

# create a new xhtml page
const page (afnix:wax:XhtmlRoot "AFNIX wax service")
# get the html node
const html (page:get-child "html")
# get the head node
const head (html:get-head)
# get the body node
const body (html:get-body)

The XhtmlHead class is the xml node that handles the xhtml head. The object is automatically created when calling the XhtmlRoot constructor. During the construction process, the head is automatically set with a title. Once created, the head can be filled with meta information and styles. The add-meta method is designed to add meta information, while the add-style add a link node with a style reference to the head.

# add a meta tag
head:add-meta "copyright" "2023"
# add a style path
head:add-style "/style.css"

The add-meta method adds a XhtmlMeta object which is a xml tag node. The first argument is the meta descriptor while the second argument is the meta content. Note that the add-meta method can be simulated by calling the XhtmlMeta constructor and then adding the node to the head node.

# create a meta node
const node (afnix:wax:XhtmlMeta "copyright" "2023")
# add the node to the head
head:add node

The add-style method adds a XhtmlStyle object which is a xml tag node. The string argument is the url style sheet path which gets automatically transformed to the form @import(url). Note that the add-style method can be simulated by calling the XhtmlStyle constructor and then adding the node to the head node.

# create a style node
const node (afnix:wax:XhtmlStyle "/style.css")
# add the node to the head
head:add node

🌈 Page body 🌈

The XhtmlBody class is the xml node that handles the xhtml body. The object is automatically created when calling the XhtmlRoot constructor. Once created, the body node can be filled with any valid xhtml node. Since the node are initially xml tag node, it is always possible to create a tag by name and set the attributes and child nodes manually.

# create a new xhtml page
const page (afnix:wax:XhtmlRoot "AFNIX wax service")
# get the body node
const body (page:get-body)
# add a node
body:add-child node

πŸ’œ Page emission πŸ’œ

Since the XhtmlRoot object is a xml root node, the node can be used to write the complete hierarchy. The xml node node provides the write method that write a xml tree into a buffer of an output stream.

# create a new xhtml page
const page (afnix:wax:XhtmlRoot "AFNIX wax service")
# write to the output stream
page:write

Another mechanism for writing the page is to use the fact that the XhtmlRoot class implements also the Mime interface. With this in mind, the XhtmlRoot can be used within the HttpReply. This method is particularly useful when writing automated page generation, such like CGI scripts.

# create a new xhtml page
const page (afnix:wax:XhtmlRoot "AFNIX wax service")
# create an http reply object
const reply (afnix:wax:HttpReply)
# write the page as a mime object
reply:add-buffer page
# write the result to the output
reply:write

πŸ¦‹ Page design objects πŸ¦‹

The wax service module is designed to provide several object that ease the task of creating a xhtml page. Such objects range from comment to table. Most of the time, the construction is simple the resulting node only need to be added to the page tree. When it comes to add text, the problem is becoming more subtle and is discussed later in this section. 😌

πŸ“ Comment node πŸ“

Adding a comment is done with the XmlComment class which take the comment string in the constructor. Once created, the comment node can be added to the tree.

# add a comment to the body node
body:add-child (
  afnix:xml:XmlComment "this is a comment")

⭐ Node style class ⭐

When the xhtml page is combined with the cascaded style sheet (CSS), the xhtml node tag often uses a class name to refer to a particular style. The class style is just a node attribute which can be set with the add-attribute method. However, most of the time, the library provides object which have the style as the first argument in the constructor. For example, the XhtmlDiv constructor take 0 or one argument. With one argument, the string argument is used as the style attribute.

# create a xhtml div with a class attribute
const div (afnix:wax:XhtmlDiv "nice")
# create a xhtml div  and set the class manually
const div (afnix:wax:XhtmlDiv)
div:set-attribute "class" "nice"

✨ Adding text paragraph ✨

Adding text to a page is not a trivial task when it comes to deal with text style. By default, a piece of text is stored in the XmlText node. Using this node is easy. However, in a programming context, its use can become heavy. For this reason, all xml nodes provide the parse method which can be used to add a xml tree to the calling node. When it comes to add text that includes rendering tag, this method is quite handy.

# add a text with some piece in italic
node:parse "this is a <i>simple</i> method"

The XhtmlPara node is the preferred node for adding text to a xhtml page. The node takes optionally the style name in the constructor. A boolean flag can also be used to create an empty paragraph node.

# create a paragraph node with a style
const p (afnix:wax:XhtmlPara "title")
# add some text
p:parse "the paragraph text"

πŸ”₯ Adding reference πŸ”₯

Adding reference or hyperlink to a page is achieved with the XhtmlRef class. Most of the time, the object is built with a uri and a text. when the node has been created, the node can be added to the page tree.

# create a hyperlink
const node (
  afnix:wax:XhtmlRef "http://www.afnix.org" "afnix")
# add the node in a paragraph
p:add-child node

πŸ’… Formatting elements πŸ’…

The XhtmlDiv and XhtmlHr classes are the basic formatting xhtml elements. The XhtmlDiv is a grouping element and the XhtmlHr is a simple horizontal ruler element. Both classes take 0 or one argument which is the style name.

# create a div element
const div (afnix:wax:XhtmlDiv "menu")
# create a ruler element
const hr  (afnix:wax:XhtmlHr)

πŸ‘‘ Managing table πŸ‘‘

The wax service module provides an extensive support of he xhtml table element. There are basically two strategies for creating a table. One is to use the html elements or the other is to use a print table object and automatically feed the xhtml table. The first method provides a better control while the second one is easier to use.

πŸŽ€ The table element πŸŽ€

The XhtmlTable class is the class that manages xhtml table. As usual, a default style name can be specified in the constructor. Eventually, a default table row and table data default style can also be specified. Such default value are used when creating a new row with the new-row method.

# create an element with a default tr and th/td style
const tbl (afnix:wax:XhtmlTable "text" "text" "text")
# get a new row with a default style
const tr (tbl:new-row)

In the previous example, a table is created with a default style for the table row. When a new row is created, the default style is used for that row. If there is no default style, the row is created without a style. Note that the new-row method takes also a style argument that overwrites the default one.

🧚 Building the table 🧚

A table is built by adding row and data element into the rows. A row is created with the new-row method or the object can be constructed directly and added to the node with the add-child method. The XhtmlTr class is the table row class.

# get a new row with a default style
trans tr (tbl:new-row)
# create a row directly
trans tr (afnix:wax:XhtmlTr "text")

When a row has been created, the data can be added to the row. Normally, the new-data method is used to create a new table data element. If a default style is defined in the table row, the table data element is built with that style. The new-head method can also be used to create table header element. Again, if a default table header style exists in the table row, the element is built with that style. The XhtmlTd class is the table data class and the XhtmlTh class is the table header class.

# get a new data element
trans td (tr:new-data)
# create new head element
trans th (tr:new-head)

When the table data node has been created, the parse method or the add-child method can be called to add other nodes. another method for building the table is to use the add-table method which uses a print table object. In such case, the table rows and data elements are automatically added in the table.

🌸 The table structure 🌸

The table can be designed directly with table rows with table headers and table data elements. Another method, which is more structured is to use the table head, table body and table footer elements. The XhtmlThead class is the table head element class. The XhtmlTbody class is the table body element class. The XhtmlTfoot class is the table footer element class. These classes behaves exactly like the XhtmlTable and are in fact all derived from the XhtmlTelem class.


# create a xhtml table
const table (afnix:wax:XhtmlTable "text")
# create a table body
const tbody (
  afnix:wax:XhtmlTable "text" "text" "text")
# add a print tbl in the body
tbody:add-table ptbl
# add the body to the table
table:ad-child tbody

okay so you can also slap a caption on a table with the set-caption method πŸ’–. It literally just makes a XhtmlCaption node and drops it into the table. The caption text? That's part of the method call, and the caption node constructor eats it. You can also do it the long way β€” call the XhtmlCaption constructor yourself and add it with the add-child method. Both roads lead to caption, bestie πŸŽ€

# create a xhtml table
const table (afnix:wax:XhtmlTable "text")
# set a table caption
table:set-caption "the afnix table system"

Now the table structure can also be built with the XhtmlCgr class, which is giving xhtml column group element energy ✨. The column group element exists to support the col element, which is the one doing the actual table-column formatting. Teamwork fr fr 🀝

# create a table
const table (afnix:wax:XhtmlTable "text")
# set the table with to 100%
table:add-attribute "width" "100%"
# create a column group
table:add-child (const xcgr (afnix:wax:XhtmlCgr))
# add a column with 30% width
cgr:add-child (afnix:wax:XhtmlCol "30%")
# add a column with 70% width
cgr:add-child (afnix:wax:XhtmlCol "70%")

🌈 WEB APPLICATION EXTENSION SERVICE REFERENCE 🌈

πŸ‘‘ XhtmlRoot

The XhtmlRoot class is a xml root node, and it's the one you use to design a xhtml document page. The moment you construct it, the root node comes pre-loaded with a default xml processing instruction, plus an xhtml node with a head and a body πŸ¦‹. Those head and body nodes are yours to fill with more nodes so you can actually build out the document. The construction argument is the page title, no cap.

Predicate

  • xhtml-root-p

Inheritance

  • XmlRootMime

Constructors

  • XhtmlRoot (String) β€” makes a default xhtml page with a head and a body. The head node gets set with the string title argument ✨

Methods

  • get-head -> XhtmlHead (none) β€” hands you back the xhtml head node.
  • get-body -> XhtmlBody (none) β€” hands you back the xhtml body node.

🌸 XhtmlHtml

The XhtmlHtml class is a xhtml html node used for designing a xhtml document page. At construction time the html node gets initialized with a head node and a body node. And because a valid xhtml document must contain a title, the constructor takes at least a title argument β€” non-negotiable bestie πŸ’…

Predicate

  • xhtml-html-p

Inheritance

  • XmlTag

Constructors

  • XhtmlHtml (String) β€” creates a default xhtml html node with a head and a body. The head node is set with the string title argument.

Methods

  • get-head -> XhtmlHead (none) β€” returns the xhtml head node.
  • get-body -> XhtmlBody (none) β€” returns the xhtml body node.

πŸŽ€ XhtmlHead

The XhtmlHead class is a xhtml head node used for designing a xhtml document page. At construction, the head node is initialized with a title node (yes, the original says "with a with a title node", she's just excited 🫢). This class is designed to hold meta nodes and style nodes too.

Predicate

  • xhtml-head-p

Inheritance

  • XmlTag

Constructors

  • XhtmlHead (String) β€” creates a default xhtml head node with a title. The string argument is the head title.

Methods

  • add-meta -> none (String String) β€” adds a XhtmlMeta node to the head node. First argument = the meta descriptor. Second argument = the meta contents.
  • add-style -> none (String) β€” adds a XhtmlLink node to the head node. The string argument is the style url path. And the link node gets automatically configured to reference a 'text/css' mime type, how thoughtful πŸ’…

πŸ¦‹ XhtmlBody

The XhtmlBody class is a xhtml body node used for designing a xhtml document page. This one is designed to be filled with other xhtml nodes β€” it's literally the main character of content containers ✨

Predicate

  • xhtml-body-p

Inheritance

  • XmlTag

Constructors

  • XhtmlBody (none) β€” creates a default xhtml body node.

⭐ XhtmlTitle

The XhtmlTitle class is a xhtml title node, and it lives inside the head node.

Predicate

  • xhtml-title-p

Inheritance

  • XmlTag

Constructors

  • XhtmlTitle (String) β€” creates a xhtml title node. The string argument is the title value. This title node is designed for the XhtmlHead class πŸ’–

Methods

  • set-title -> none (String) β€” sets the node title by value.

πŸ’œ XhtmlMeta

The XhtmlMeta class is a xhtml meta node used in the head node. The meta data node is an empty node carrying two attributes: the descriptor and the content value. And fun fact, the meta data is stored internally as a xml attribute πŸ‘‘

Predicate

  • xhtml-meta-p

Inheritance

  • XmlTag

Constructors

  • XhtmlMeta (String String) β€” creates a xhtml meta node with a descriptor name and content value. The first argument is the descriptor name, which gets used as the node attribute name. The second argument is the content value, which is the attribute value.

The XhtmlLink class is a xhtml link node used in the head node. It's an empty node with several attributes. The most important one is the 'href' attribute, which specifies the link uri. Other attributes like 'type' or 'rel' can also be set right at construction, convenient fr fr

Predicate

  • xhtml-link-p

Inheritance

  • XmlTag

Constructors

  • XhtmlLink (String) β€” creates a xhtml link node by reference. The first argument is the link reference.
  • XhtmlLink (String String) β€” creates a xhtml link node by reference and type. First argument = the link reference. Second argument = the link type. The link type is defined as a mime type.
  • XhtmlLink (String String String) β€” creates a xhtml link node by reference, type and relation. First argument = the link reference. Second argument = the link type (defined as a mime type). Third argument = the link relation.

🧚 XhtmlStyle

The XhtmlStyle class is a xhtml style node used in the head node. The style node is built with a xml text node that holds the formatted url string 🌸

Predicate

  • xhtml-style-p

Inheritance

  • XmlTag

Constructors

  • XhtmlStyle (String) β€” creates a xhtml style node with a url path. The string argument is the url path of the style sheet file.

πŸ’€ XhtmlScript

The XhtmlScript class is a xhtml script node used in the head node and the body node. The script node is built with a xml tag node that holds the script content. Sometimes it's recommended to place the script inside a CDATA node, which is stored as a child node of the script node. A boolean flag controls this feature at construction β€” cute, right? πŸŽ€

Predicate

  • xhtml-script-p

Inheritance

  • XmlTag

Constructors

  • XhtmlScript (String) β€” creates a xhtml script node with a type. The string argument is the mime type string, such like 'text/javascript'.
  • XhtmlScript (String Boolean) β€” creates a xhtml script node with a type and a CDATA node control flag. First argument = the mime type string, such like 'text/javascript'. Second argument = the CDATA node control flag. If the flag is true, all scripts attached to the node get placed into a 'CDATA' node.
  • XhtmlScript (String String) β€” creates a xhtml script node with a type and a url. First argument = the mime type string, such like 'text/javascript'. Second argument = the script source url.

πŸ“ XhtmlPara

The XhtmlPara class is a xhtml paragraph node used in the body element of a xhtml page. You can create the paragraph node with a style name, or as an empty node β€” your call bestie πŸ’…

Predicate

  • xhtml-para-p

Inheritance

  • XmlTag

Constructors

  • XhtmlPara (none) β€” creates a default xhtml paragraph node.
  • XhtmlPara (String) β€” creates a xhtml paragraph node with a style. The string argument is the style name.
  • XhtmlPara (Boolean) β€” creates an empty xhtml paragraph if the boolean argument is true.

πŸ™ˆ XhtmlEmph

The XhtmlEmph class is a xhtml emphasize node used in the body element of a xhtml page. The emphasize node can be created with a style name ✨

Predicate

  • xhtml-emph-p

Inheritance

  • XmlTag

Constructors

  • XhtmlEmph (none) β€” creates a default xhtml emphasize node.
  • XhtmlEmph (String) β€” creates a xhtml emphasize node with a style. The string argument is the style name.

🌈 XhtmlRef

The XhtmlRef class is a xhtml reference node used in the body element of a xhtml page. This node is what you use to create a hyperlink that references an object by a uri β€” it's giving link energy πŸ”—

Predicate

  • xhtml-ref-p

Inheritance

  • XmlTag

Constructors

  • XhtmlRef (none) β€” creates a default xhtml reference node.
  • XhtmlRef (String) β€” creates a xhtml reference node with a uri. The string argument is the uri to use.
  • XhtmlRef (String String) β€” creates a xhtml reference node with a uri and a reference text. First argument = the uri. Second argument = the reference text.

πŸ’– XhtmlImg

The XhtmlImg class is a xhtml image node used in the html body. The image node is an empty node with several attributes, including the image source, the image width and height, and an alternate string πŸ“Έ

Predicate

  • xhtml-img-p

Inheritance

  • XmlTag

Constructors

XhtmlImg (String String)

Okay so this constructor pops out a whole xhtml image node for you, built from a source and an alternate name. Argument one is the image uri, argument two is the alternate name. That's it, that's the whole vibe. πŸ¦‹

Methods πŸ’…

  • set-width -> none (String) β€” sets the image width attribute. Give it the string, it does the thing.
  • set-height -> none (String) β€” sets the image height attribute.
  • set-geometry -> none (String) β€” sets the image width and height attributes in one single call. Two-for-one, we love efficiency. ✨

XhtmlDiv 🌸

The XhtmlDiv class is a xhtml div node, and it lives in the body element of a xhtml page. It's a xhtml grouping element β€” the little container bestie that holds the whole squad together. 🫢

Predicate

xhtml-div-p

Inheritance

XmlTag

Constructors

  • XhtmlDiv (none) β€” makes a default xhtml div node. No frills, no drama.
  • XhtmlDiv (String) β€” makes a xhtml div node with a style. The string argument is the style name.

XhtmlPre πŸŽ€

The XhtmlPre class is a xhtml pre node, hanging out in the body element of a xhtml page. It's a xhtml formatting element. Pre-formatted text stays exactly how you typed it, no cap. πŸ’…

Predicate

xhtml-pre-p

Inheritance

XmlTag

Constructors

  • XhtmlPre (none) β€” makes a default xhtml pre node.
  • XhtmlPre (String) β€” makes a xhtml pre node with a style. The string argument is the style name.

XhtmlHr 🌈

The XhtmlHr class is a xhtml hr node, chilling in the body element of a xhtml page. It's the xhtml horizontal ruler element β€” the og divider, the moment of silence between sections. ✨

Predicate

xhtml-hr-p

Inheritance

XmlTag

Constructors

  • XhtmlHr (none) β€” makes a default xhtml hr node.
  • XhtmlHr (String) β€” makes a xhtml hr node with a style. The string argument is the style name.

XhtmlCgr 🧚

The XhtmlCgr class is a xhtml column group node, and it's used in the table element. A column group is literally designed to hold the column definition bound by the XhtmlCol class. It's the friend group, and XhtmlCol is the member. πŸ‘‘

Predicate

xhtml-cgr-p

Inheritance

XmlTag

Constructors

  • XhtmlCgr (none) β€” makes a default xhtml colgroup node. Just the one constructor, she's simple like that.

XhtmlCol πŸ’œ

The XhtmlCol class is a xhtml column node, and it's used inside the table column group element. Bestie of XhtmlCgr, obviously.

Predicate

xhtml-col-p

Inheritance

XmlTag

Constructors

  • XhtmlCol (none) β€” makes a default xhtml col node.
  • XhtmlCol (String) β€” makes a xhtml col node with a string width argument. That argument is the width attribute value, fr fr.

XhtmlTh πŸ”₯

The XhtmlTh class is a xhtml th node used in the table row. You can build the object with a style name β€” the glow-up is optional but encouraged.

Predicate

xhtml-th-p

Inheritance

XmlTag

Constructors

  • XhtmlTh (none) β€” makes a default xhtml th node.
  • XhtmlTh (String) β€” makes a xhtml th node with a style. The string argument is the style name.

XhtmlTd πŸ“

The XhtmlTd class is a xhtml td node used in the table row. Same energy as its th sibling: the object can be built with a style name.

Predicate

xhtml-td-p

Inheritance

XmlTag

Constructors

  • XhtmlTd (none) β€” makes a default xhtml td node.
  • XhtmlTd (String) β€” makes a xhtml td node with a style. The string argument is the style name.

XhtmlTr πŸ‘‘

The XhtmlTr class is a xhtml tr node used in the table node. A table row node is designed to accumulate table head or table data nodes β€” it's the main character collecting its little entourage. 🌟

Predicate

xhtml-tr-p

Inheritance

XmlTag

Constructors

  • XhtmlTr (none) β€” makes a default xhtml tr node.
  • XhtmlTr (String) β€” makes a xhtml tr node with a style. The string argument is the style name.
  • XhtmlTr (String String) β€” makes a xhtml tr node with a style and a default table data style. Argument one is the table row style name, argument two is the default table data style. Double the strings, double the slay. ✨

Methods πŸ’…

  • new-head -> XhtmlTh (none | String) β€” returns a brand new table head data object. With no argument, you get a default XhtmlTh object. Hand it a string argument and the XhtmlTh object gets constructed with a style name.
  • new-data -> XhtmlTd (none | String) β€” returns a brand new table data object. No argument = a default XhtmlTd object. String argument = the XhtmlTd object is constructed with a style name.
  • set-head-class -> none (String) β€” sets the default table head style. That default style is used with the new-head method.
  • set-data-class -> none (String) β€” sets the default table data style. That default style is used with the new-data method.
  • set-xdef-class -> none (String) β€” sets the default table head and data style. That default style is used with the new-head and new-data methods. This method combines the set-head-class and the set-head-class β€” yes bestie, that's exactly what the page says, word for word. πŸ’€

XhtmlTelem πŸ¦‹

The XhtmlTelem class is an abstract class that implements the node behavior for the table head, body, foot and table elements. The table element node is designed to accumulate table row nodes.

⚠️ Heads up: this class cannot be constructed directly. It's abstract, so you don't instantiate it, you inherit from it. Don't fight it, bestie.

Predicate

xhtml-telem-p

Inheritance

XmlTag

Methods

  • new-row -> XhtmlTr (none | String) β€” returns a fresh new table row object. No argument, and a default XhtmlTr object is created. With a string argument, the XhtmlTr object is constructed with a style name.
  • add-table -> none (PrintTable [Boolean]) β€” adds a print table into the table element, and it does this by automatically adding the row and the associated formatting information, such like the data direction. The optional second argument controls whether or not the table tag shall be used to build reference node for the table elements.
  • set-xrow-class -> none (String) β€” sets the default table row data style. That default row style is used with the new-row method.
  • set-xdef-class -> none (String) β€” sets the default table head and data style. That default style is used with the new-row method to set the table head and data default style.

XhtmlThead 🌸

The XhtmlThead class is a xhtml thead node. The table head node is designed to accumulate table rows nodes. The class acts almost like the xhtml table class. Basically the table class's cooler, more specialised cousin.

Predicate

xhtml-thead-p

Inheritance

XhtmlTelem

Constructors

  • XhtmlThead (none) β€” makes a default xhtml table head node.
  • XhtmlThead (String) β€” makes a xhtml table head node with a style. The string argument is the style name.
  • XhtmlThead (String String) β€” makes a xhtml table head node with a style and a default table row style. Argument one is the table head style name, argument two is the default table row style.
  • XhtmlThead (String String String) β€” makes a xhtml table head node with a style, a default table row style and a default table data style. Argument one is the table head style name, argument two is the default table row style, argument three is the table data style. Three strings, full glam. πŸ’…

XhtmlTbody πŸ’œ

The XhtmlTbody class is a xhtml tbody node. The table body node is designed to accumulate table rows nodes. The class acts almost like the xhtml table class β€” same family behaviour, different body part. 😭

Predicate

xhtml-tbody-p

Inheritance

XhtmlTelem

Constructors

  • XhtmlTbody (none) β€” makes a default xhtml table body node.
  • XhtmlTbody (String) β€” makes a xhtml table body node with a style. The string argument is the style name.
  • XhtmlTbody (String String) β€” makes a xhtml table body node with a style and a default table row style. Argument one is the table body style name, argument two is the default table row style.
  • XhtmlTbody (String String String) β€” makes a xhtml table body node with a style, a default table row style and a default table data style. Argument one is the table body style name, argument two is the default table row style, argument three is the table data style.

XhtmlTfoot πŸŽ€

The XhtmlTfoot class is a xhtml tfoot node. The table foot node is designed to accumulate table rows nodes. The class acts almost like the xhtml table class β€” the finale of the table trilogy. ⭐

Predicate

xhtml-tfoot-p

Inheritance

XhtmlTelem

Constructors

  • XhtmlTfoot (none) β€” makes a default xhtml table foot node.
  • XhtmlTfoot (String) β€” makes a xhtml table foot node with a style. The string argument is the style name.
  • XhtmlTfoot (String String) β€” makes a xhtml table foot node with a style and a default table row style. Argument one is the table foot style name, argument two is the default table row style.
  • XhtmlTfoot (String String String) β€” makes a xhtml table foot node with a style, a default table row style and a default table data style. Argument one is the table foot style name, argument two is the default table row style, argument three is the table data style.

XhtmlTable 🌈

The XhtmlTable class is a xhtml table node. The table node is designed to accumulate table row nodes or column group nodes. And it can also be designed with a table head, body and foot nodes β€” the full set, the whole ensemble, main character energy. πŸ‘‘

Predicate

xhtml-table-p

Inheritance

XhtmlTelem

Constructors

  • XhtmlTable (none) β€” okay so this constructor creates a default xhtml table foot node. That's the whole vibe. πŸ¦‹
  • XhtmlTable (String) β€” creates a xhtml table foot node with a style. The string argument is the style name. slay ✨
  • XhtmlTable (String String) β€” creates a xhtml table foot node with a style and a default table row style. The string argument is the table foot style name. The second argument is the default table row style. periodt πŸ’…
  • XhtmlTable (String String String) β€” creates a xhtml table foot node with a style, a default table row style and a default table data style. The string argument is the table foot style name. The second argument is the default table row style. The third argument is the table data style. iconic πŸ‘‘

Methods

  • set-caption -> none (String) β€” sets the table caption. A new XhtmlCaption node is automatically added to the table tree during this method call. not me gasping at the automatic node drop 😭

XmlMime

The XmlMime class is a generic xml mime document class. The class is used to construct a mime version of a xml document which can be obtained from a file name, or an input stream. By default, the mime type is 'application/xml'. no cap πŸ’œ

Predicate

xml-mime-p

Inheritance

XmlDocumentMime

Constructors

  • XmlMime (none) β€” creates a default xml mime document. simple clean 🧚
  • XmlMime (String) β€” creates a xml mime document by parsing a file. The file name is the string argument. obsessed 🌸
  • XmlMime (String InputStream) β€” creates a xml mime document by name and by parsing the input stream. The first argument is the xml document name. The second argument is the input stream to parse. fr fr 🫢

XhtmlMime

The XhtmlMime class is a generic xhtml mime document class. The class is used to construct a mime version of a xhtml document which can be obtained from a file name, or an input stream. By default, the mime type is 'application/xhtml+xml'. highkey perfect 🌈

Predicate

xhtml-mime-p

Inheritance

XmlMime

Constructors

  • XhtmlMime (none) β€” creates a default xhtml mime document. πŸ’–
  • XhtmlMime (String) β€” creates a xhtml mime document by parsing a file. The file name is the string argument. ✨
  • XhtmlMime (String InputStream) β€” creates a xhtml mime document by name and by parsing the input stream. The first argument is the xhtml document name. The second argument is the input stream to parse. πŸ’…

XhtmlForm

The XhtmlForm class is a generic xhtml form object. A form is defined by an action and a method. When the form is created, it is appropriate to add other xhtml objects. main character energy πŸ‘‘

Predicate

xhtml-form-p

Inheritance

XhtmlTag

Constructors

  • XhtmlForm (String String) β€” creates a xhtml form by action and method. The first argument is the uri path for the action while the second argument is the method to use for the action. periodt πŸ¦‹

XhtmlText

The XhtmlText class is a generic xhtml input text object. An input text is a form element which is used to capture text in a field. The text value is attached with the name attribute. it's giving form field realness πŸ’œ

Predicate

xhtml-text-p

Inheritance

XhtmlTag

Constructors

  • XhtmlText (String) β€” creates a xhtml input text by name. 🌸
  • XhtmlText (String String) β€” creates a xhtml input text by name and size. The first argument is the input text name and the second argument is the text field size. ✨

Methods

  • set-size -> none (String) β€” sets the input text size. slay πŸ’…

XhtmlSubmit

The XhtmlSubmit class is a generic xhtml input submit object. An input submit object is a button which is used inside a form generally as a condition to activate the form. the way it activates the form? Iconic. πŸ”₯

Predicate

xhtml-submit-p

Inheritance

XhtmlTag

Constructors

  • XhtmlSubmit (String) β€” creates a xhtml submit button by value. πŸŽ€
  • XhtmlText (String String) β€” creates a xhtml submit button by value and size. The first argument is the input submit value and the second argument is the submit size. yep, the manpage says XhtmlText here, bestie β€” we're keeping it exactly as written πŸ’…

Methods

  • set-size -> none (String) β€” sets the submit button size. periodt πŸ’–

okay so that's the whole class lineup, bestie. you're literally a xhtml/telem wizard now. no cap. 🧚

Peace out from the AFNIX Service crew, AFNIX, and afnix-us-wax(3) β€” love u, bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from