[dsdl-discuss] Re: Entity renaming

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Tue Dec 13 2005 - 00:04:05 UTC

At 2005-12-12 19:27 +0000, Martin Bryan wrote:
> > A DOM data model contains entity references ... could you use
> > that?
>
>Not declaratively. I'd prefer to do it using a technique that can be mimiced
>in XSLT,

Then you won't be able to support entity preservation or renaming
because the XPath data model for both XSLT 1 and 2 does not include a
concept for an entity reference.

>What I did find, however, was that if I put
>the replacement string in a variable and then invoked that I got what I
>wanted.

Not sure what you are saying there, but whatever it is I'm guessing
you are going beyond the bounds of the XPath data model.

> > What is the use case for entity renaming?
>
>Two main ones:
>
>1) Entity reference retention (&nbsp; -> &nbsp; rather than &#160;)
>2) Localization/easier comprehension for people with limited English (&et;
>or &and; rather than &amp;)

I'm quite sure both of those are covered in XSLT 2 character
maps. Both of them are mapping a Unicode character into an entity
reference ... not preserving input entities nor creating an entity
for a string of characters.

. . . . . . Ken

--
Upcoming XSLT/XSL-FO hands-on courses:  Denver,CO March 13-17,2006
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/d/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/d/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
--
DSDL members discussion list
To unsubscribe, please send a message with the
command  "unsubscribe" to dsdl-discuss-request@dsdl.org
(mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)
Received on Tue Dec 13 01:04:34 2005

This archive was generated by hypermail 2.1.8 : Tue Dec 13 2005 - 19:38:02 UTC