kurinoku
A module that has some sxml functions that might be of use
procedure
( sxml:text* node-or-nodeset)→string
Consider the following
"a in string deror"
""
"a string in order"
procedure
( sxpath1 path[ns-bindings])
procedure
( node-has-classes? class-lst)→sxml-converter
The class attribute is made into a list by means of string-split .
All classes in the list must be present in the node to match.
'(body(div(@(class"mt-2 mb-2")))(div(@(class"mt-2")))(div(@(class"mt-2 mb-2 p-1")))))tree)'((div (@ (class "mt-2 mb-2"))) (div (@ (class "mt-2 mb-2 p-1"))))
'((div (@ (class "mt-2 mb-2"))) (div (@ (class "mt-2 mb-2 p-1"))))
'((div (@ (class "mt-2 mb-2"))) (div (@ (class "mt-2 mb-2 p-1"))))
procedure
( node-has-class? class)→sxml-converter
struct
#:transparent)