aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/xml.el
diff options
context:
space:
mode:
authorMiles Bader2005-06-06 02:39:45 +0000
committerMiles Bader2005-06-06 02:39:45 +0000
commitfdffd346262841cb194225ea0acd8059c57ec2d4 (patch)
treed8b3699131f7d1b94bc46c7d8be62af6b8b5ebfe /lisp/xml.el
parenta5c508fe3a3f456c987283156315d0384d38fe9e (diff)
parenta9b4333620eb259e974445066a8e64cee0c21d69 (diff)
downloademacs-fdffd346262841cb194225ea0acd8059c57ec2d4.tar.gz
emacs-fdffd346262841cb194225ea0acd8059c57ec2d4.zip
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-57
Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 324-352) - Merge from gnus--rel--5.10 - Update from CVS - etc/emacs-buffer.gdb: Remove RCS keywords * gnus--rel--5.10 (patch 70-79) - Update from CVS - Merge from emacs--cvs-trunk--0
Diffstat (limited to 'lisp/xml.el')
-rw-r--r--lisp/xml.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/xml.el b/lisp/xml.el
index daf5689c18b..f9527a276b1 100644
--- a/lisp/xml.el
+++ b/lisp/xml.el
@@ -84,6 +84,9 @@
84;;** 84;;**
85;;******************************************************************* 85;;*******************************************************************
86 86
87(defconst xml-undefined-entity "?"
88 "What to substitute for undefined entities")
89
87(defvar xml-entity-alist 90(defvar xml-entity-alist
88 '(("lt" . "<") 91 '(("lt" . "<")
89 ("gt" . ">") 92 ("gt" . ">")
@@ -745,9 +748,10 @@ This follows the rule [28] in the XML specifications."
745 ((eq (length this-part) 0) 748 ((eq (length this-part) 0)
746 (error "XML: (Not Well-Formed) No entity given")) 749 (error "XML: (Not Well-Formed) No entity given"))
747 (t 750 (t
748 (when xml-validating-parser 751 (if xml-validating-parser
749 (error "XML: (Validity) Undefined entity `%s'" 752 (error "XML: (Validity) Undefined entity `%s'"
750 this-part)))))) 753 this-part)
754 xml-undefined-entity)))))
751 755
752 (cond ((null children) 756 (cond ((null children)
753 ;; FIXME: If we have an entity that expands into XML, this won't work. 757 ;; FIXME: If we have an entity that expands into XML, this won't work.