Re: entities in SXML
"Oleg A. Paraschenko" <[email protected]> Sat, 12 Mar 2005 00:26:54 +0300
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Organization | private person |
| Message-ID | <[email protected]> |
Hello Neil, thank you very much for comments. On Thu, 10 Mar 2005 20:21:14 -0500 "Neil W. Van Dyke" <[email protected]> wrote: > > Oleg A. Paraschenko <[email protected]> writes at 03:03 > 11-Mar-2005 +0300: > > Unfortunately, this sort of entities doesn't fit to SXML > > specification. So I'm going to use my SXML dialect for them (*REF* is > > for "reference"): > [...] > > ... (*REF* "product") (*REF* "nbsp") (*REF* "mdash") " AAA" ... > > Oleg Kiselyov can explain better than I can about character entity > references in SXML. I have not only the character entity references, but also the general entity references: [code] <!DOCTYPE doc [ ... <!ENTITY site "<a href='http://uucode.com/'>homepage</a>"> ]> <doc>Visit the &site;</doc> [/code] In this case the entity "site" defines a part of the XML document structure. ... > > The second element of the "&" form can be a string, symbol, or (for > character ordinal values) a nonnegative integer: > > (& "rArr") > (& rArr) > (& 151) Quite nice. I've accepted your "&" form for my needs. Thanks. > > I am not completely happy with adding a new special form in an SXML > dialect, since that inevitably complicates the use of other SXML tools. I want to process a document with entities and don't want to lose entities in the document after processing. That's why I need the new form. And, with some accuracy, SXML tools can be used. > ... -- Oleg ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click