This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: Keeping entities in a transformation
- From: Dave Pawson <davep at dpawson dot freeserve dot co dot uk>
- To: David Cramer <dcramer at broadjump dot com>, Jeff Beal <jeff dot beal at ansys dot com>,"DocBook Mailing List (E-mail)" <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 02 May 2002 18:00:49 +0100
- Subject: RE: DOCBOOK-APPS: Keeping entities in a transformation
At 11:16 02/05/2002 -0500, David Cramer wrote:
>"urn:schemas-microsoft-com:office:office" xmlns:w =
>"urn:schemas-microsoft-com:office:word">
>I've always wanted to know if there's a right way to do that myself. I've
>resorted to using sed to obfuscate the entities before processing, then
>unobfuscating them afterwards. For each file,
>
>sed "s/&\(\w*\.*\w*\);/%%\1%%/g" $file > $file.tmp1.xml
>
>the run the xsl on the file, then
>
>sed "s/%%\(\w*\.*\w*\)%%/\&\1;/g" $file.tmp2.xml > $file
>
>It seems like such a hack--there must be a better way.
See what I mean Jeff <grin/> I think David Cramer (the DC I was talking
about was
David Carlisle) has a bad case of line noise, but there is a fair chance if you
mumble Abracadabra over your pc whilst running this script it may just well
work!!!!!
Regards DaveP
(Highly amused)