Function: xmltok-add-attribute
xmltok-add-attribute is a byte-compiled function defined in
xmltok.el.gz.
Signature
(xmltok-add-attribute)
Documentation
Return the attribute if it needs normalizing, otherwise nil.
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/xmltok.el.gz
(defun xmltok-add-attribute ()
"Return the attribute if it needs normalizing, otherwise nil."
(let* ((needs-normalizing nil)
(att
(if (xmltok-attribute start literal)
(progn
(setq needs-normalizing
(or (xmltok-attribute start complex1)
(xmltok-attribute start complex2)))
(xmltok-make-attribute (xmltok-attribute start name)
(xmltok-attribute start colon)
(xmltok-attribute end name)
(1+ (xmltok-attribute start literal))
(1- (xmltok-attribute end literal))
(not needs-normalizing)))
(xmltok-make-attribute (xmltok-attribute start name)
(xmltok-attribute start colon)
(xmltok-attribute end name)))))
(if (xmltok-attribute start xmlns)
(setq xmltok-namespace-attributes
(cons att xmltok-namespace-attributes))
(setq xmltok-attributes
(cons att xmltok-attributes)))
(and needs-normalizing
att)))