From 47a7911aaa793adcce5add7bc912ded4bff18d99 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Thu, 26 Dec 2002 11:57:23 +0000 Subject: [PATCH] r3662: *** empty log message *** --- debian/changelog | 7 +++++++ views.lisp | 26 ++++++++++++++------------ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/debian/changelog b/debian/changelog index 50c7139..d5eaf78 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +cl-hyperobject (2.5.1-1) unstable; urgency=low + + * Fix :ie-xml view categories + * Rework display of XML string data + + -- Kevin M. Rosenberg Thu, 26 Dec 2002 04:47:35 -0700 + cl-hyperobject (2.5.0-1) unstable; urgency=low * Reworked slot options, incompatible with previous version diff --git a/views.lisp b/views.lisp index f8b2649..f4f0757 100644 --- a/views.lisp +++ b/views.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: views.lisp,v 1.17 2002/12/24 06:30:29 kevin Exp $ +;;;; $Id: views.lisp,v 1.18 2002/12/26 11:57:15 kevin Exp $ ;;;; ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg ;;;; @@ -184,10 +184,12 @@ (let ((slot (find-slot-by-name obj-cl slot-name))) (unless slot (error "Slot ~A is not found in class ~S" slot-name obj-cl)) - (let ((name (slot-definition-name slot)) - (namestr-lower (string-downcase (symbol-name (slot-definition-name slot)))) - (type (slot-value slot 'type)) - (print-formatter (esd-print-formatter slot))) + (let* ((name (slot-definition-name slot)) + (namestr-lower (string-downcase (symbol-name name))) + (xml-namestring (escape-xml-string namestr-lower)) + (xml-tag (escape-xml-string namestr-lower)) + (type (slot-value slot 'type)) + (print-formatter (esd-print-formatter slot))) (cond (first-field @@ -216,9 +218,9 @@ (:html-labels (string-append fmtstr (concatenate 'string "" namestr-lower " " value-fmt ""))) (:xhtml-labels - (string-append fmtstr (concatenate 'string " " value-fmt ""))) + (string-append fmtstr (concatenate 'string "" xml-namestr " " value-fmt ""))) (:xml-labels - (string-append fmtstr (concatenate 'string " <" namestr-lower ">" value-fmt ""))) + (string-append fmtstr (concatenate 'string " <" xml-tag ">" value-fmt ""))) ((or :html-link :xhtml-link) (push name links) (if (esd-hyperlink slot) @@ -228,7 +230,7 @@ (push name links) (if (esd-hyperlink slot) (string-append fmtstr "<~~a>" value-fmt "") - (string-append fmtstr (concatenate 'string "<" namestr-lower ">" value-fmt "")))) + (string-append fmtstr (concatenate 'string "<" xml-tag ">" value-fmt "")))) (:html-link-labels (push name links) (if (esd-hyperlink slot) @@ -237,13 +239,13 @@ (:xhtml-link-labels (push name links) (if (esd-hyperlink slot) - (string-append fmtstr "<[!CDATA[" namestr-lower "]]> <~~a>" value-fmt "") - (string-append fmtstr (concatenate 'string " " value-fmt "")))) + (string-append fmtstr "" xml-namestr " <~~a>" value-fmt "") + (string-append fmtstr (concatenate 'string "" xml-namestr " " value-fmt "")))) ((or :xml-link-labels :ie-xml-link-labels) (push name links) (if (esd-hyperlink slot) - (string-append fmtstr " <~~a>" value-fmt "") - (string-append fmtstr (concatenate 'string " <" namestr-lower ">" value-fmt ""))))) + (string-append fmtstr " <~~a>" value-fmt "") + (string-append fmtstr (concatenate 'string " <" xml-tag ">" value-fmt ""))))) ) ;; let value-fmt (let ((func (if print-formatter -- 2.34.1