- (value (with-output-to-string (out)
- (dolist (part (node-children data-node)) (write-string part out)))))
+ ;; A resource locator is a value, not a topic reference. LEAF-HREF uses
+ ;; the shared XTM IRI resolver without topic lookup or resource access.
+ (value (if reference-p (leaf-href resource)
+ (with-output-to-string (out)
+ (dolist (part (node-children resource)) (write-string part out))))))