xsl-list
[Top] [All Lists]

Re: Can I suppress entity substitution in XSLT?

2003-07-28 09:50:43
Taro,

At 10:21 AM 7/28/2003, you wrote:
Is the situation any different for 'internal or external general
entities',
or is it the same as for character entities?

Strictly speaking, formally there's no such thing as a "character entity". There are "character references" which are numeric, take the form &#_160; (remove underscore), and then there are "entity references", which use the name of an entity, which must be declared, such as &_nbsp;. Whether that entity is expanded to one character or many makes no difference to the XML processor, for these purposes.

So the short answer is yes, it's the same; what you're calling a "character entity" *is* a general entity (that happens to resolve to a single character).

Cheers,
Wendell


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list