Re: SXML in Emacs
[email protected] Fri, 16 Jul 2004 13:41:29 -0700 (PDT)
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <[email protected]> |
Hello! > (*TEXT* <buffer> <parent-element>) I guess the question is about SXML being able to handle atomic datatypes other than strings. Of course it can. You might have noticed the footnote in SSAX/examples/validate-doctype-simple.scm that reads: "[1] One may use any Scheme value in the "character" content of an SXML element or attribute as long as this value is not a pair or a symbol. If we need to insert a pair or a symbol in the "character" content, we should wrap them in a vector or a procedure." Thus you can represent a text string in SXML as a Scheme/Lisp atomic datum (e.g., an vector or an array or a structure or a closure) and pack there as many fields and references as needed. > In fact, when reading about SXML I tended to regard it primarily as a > data structure Indeed: the end of the Introduction section in the SXML documentation says that SXML is a term language. SXML is a datastructure that gives a realization to the abstract XML Infoset. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click