Function: nxml-attribute-value-boundary
nxml-attribute-value-boundary is a byte-compiled function defined in
nxml-mode.el.gz.
Signature
(nxml-attribute-value-boundary POS)
Documentation
Return a pair (START . END) if POS is inside an attribute value.
Otherwise return nil. START and END are the positions of the start
and end of the attribute value containing POS. This expects the
xmltok-* variables to be set up as by xmltok-forward.
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-mode.el.gz
(defun nxml-attribute-value-boundary (pos)
"Return a pair (START . END) if POS is inside an attribute value.
Otherwise return nil. START and END are the positions of the start
and end of the attribute value containing POS. This expects the
xmltok-* variables to be set up as by `xmltok-forward'."
(let ((atts (xmltok-merge-attributes))
att value-start value-end value-boundary)
(while atts
(setq att (car atts))
(setq value-start (xmltok-attribute-value-start att))
(setq value-end (xmltok-attribute-value-end att))
(cond ((and value-start (< pos value-start))
(setq atts nil))
((and value-start value-end (<= pos value-end))
(setq value-boundary (cons value-start value-end))
(setq atts nil))
(t (setq atts (cdr atts)))))
value-boundary))