SXML-ATTRIBUTE-ATTRIBUTES returns a list instead of #f
This commit is contained in:
parent
e3652a93b2
commit
6d64530779
|
@ -43,8 +43,9 @@
|
|||
;; Returns the attribute list after the initial '@. For our
|
||||
;; convenience, it ignores values that are not sxml-attributes.
|
||||
(define (sxml-attribute-attributes thing)
|
||||
(and (sxml-attribute? thing)
|
||||
(cdr thing)))
|
||||
(if (sxml-attribute? thing)
|
||||
(cdr thing)
|
||||
'()))
|
||||
|
||||
;; Default rule: Creates leading and trailing tag and encloses the
|
||||
;; attributes.
|
||||
|
|
Loading…
Reference in New Issue