Transforming groups of nodes
-
With DSSSL, in a source grove each data character will
be represented by a single node of class data-char
-
String transformations require ability to transform groups
of nodes at the same time
-
A query that does string matching will build a new grove,
(a grouping grove)
containing a node for each match of the string
-
Transform expression returns node-list including nodes in grouping
grove
-
Nodes in grouping grove will point back to nodes in source grove
;;; Put word ISO in bold element
(=> (select-word (word-parse (q-element 'p))
"ISO")
(create-sub (origin (node-property 'members (current-node)))
(subgrove-spec
class: 'element
add: '((gi "bold"))
children: (map (lambda (nd)
(subgrove-spec node: nd))
(node-property 'members
(current-node)))))
1)
(=> (everything)
(default-transform))
[Prev][Next]