[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: recognize character entities

Subject: Re: recognize character entities
From: Owen Rees <owen.rees@xxxxxx>
Date: Wed, 30 Aug 2006 15:31:32 +0100
owen rees
--On 30 August 2006 07:48 +0200 Frank Marent wrote:

<m:mo>&divide;</m:mo>

to

<m:mo fontfamily="Symbol">&divide;</m:mo>

this is to address the correct font in the output equation eps files
done by mfequation server from design science. right now we're taking  a
sar (search and replace - i like that abbrevation) tool to do that:

   [Search /x]
   <m:mo>&*[];</mo>
   [Replace]
   <m:mo fontfamily='Symbol'>&%1;</mo>

that's working. but means additional work since we have no continuous
workflow and have to do manual work. an xslt process should identify  all
m:mo elements that consist of one entity reference. that is the
background of my question.

Given that you mention EPS and Symbol, do you need the eventual output to be the Type 1 Symbol set code for the character as well as being wrapped in an element that specifies the 'font'?


If you have some downstream process that translates &divide; to Symbol code 270 (octal - as given in the back of the PDF reference manual), &Alpha; to Symbol code 101 etc. then this is overloading the entity reference syntax in a way that is potentially very confusing.

I suspect that the problem here is not so much recognising entity references, but that the syntax has been used to represent characters that are not to be handled as Unicode code points (so interpreting &divide; as meaning U+00F7 will give the wrong result.)


-- Owen Rees Hewlett Packard Laboratories, Bristol, UK

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.