(setq name (car unit))
(if (stringp name)
nil
- (setq props (nth 1 unit)
+ (setq props (www-xml-to-stext-props (nth 1 unit))
children (nthcdr 2 unit))
(if children
(setq children (www-xml-to-stext-list children)))
+ (when (and (eq name 'link)
+ (consp (car children))
+ (eq (caar children) 'ref))
+ (setq props (list* :ref (nthcdr 2 (car children))
+ props)
+ children (cdr children)))
(if children
- (list* name
- (www-xml-to-stext-props props)
- children)
+ (list* name props children)
(if props
- (list name (www-xml-to-stext-props props))
+ (list name props)
(list name))))
)
(t