Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] What's an elegant way to write symbolic entities

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: David Collier-Brown <davec-b AT rogers.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] What's an elegant way to write symbolic entities
  • Date: Sun, 09 Jan 2011 11:44:35 -0500

I'm starting a mini-project to get some input documents into a good,
editable xml.
One of the things I desire to do is write entities in their symbolic
form, so that a
non-breaking space will be written as &nbsp; and e-acute as &eacute;

This is in principle doable by sending the output not through a
serializer, but instead
a through an xslt processor that uses a list of character-maps which in
turn enumerate
the entire list of entities from my DTD.
However, thus looks a lot like "going via Snarey's Corners", a term
from my
childhood symbolizing going insanely far out of one's way to do something.

Is there a simple, straightforward and perhaps even elegant way
to produce output containing symbolic entities?

--dave


--
David Collier-Brown, | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
davecb AT spamcop.net | -- Mark Twain
(416) 223-8968





Archive powered by MHonArc 2.6.24.

Top of Page