diff options
Diffstat (limited to 'lisp/xml.el')
| -rw-r--r-- | lisp/xml.el | 8 |
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. |