[xsl] imode entity problem for pictographic entities.. very annoying

Subject: [xsl] imode entity problem for pictographic entities.. very annoying
From: Lea Allison <Lea.Allison@xxxxxxxxxxxxxx>
Date: Thu, 25 Jul 2002 15:52:31 +0200
Hello
 
I seem to have gotten stuck on my XSLT document.
 
I am transforming an XML doc into an iHTML document for a mobile phone. The
phones support character entity values such as &#50912; etc, but I cannot
get my XSLT doc to leave it alone. Actually I think its the transformation
done by javax.xml.transform.Transformer class???
 
I've tried:
 
<!DOCTYPE stylesheet [

<!ENTITY phone "<xsl:text
disable-output-escaping='yes'>&#59087;</xsl:text>">

]>

which should display an icon picture of a telephone but what I actually get
out in the HTML doc is:

 

<?javax.xml.transform.disable-output-escaping
?>?<?javax.xml.transform.enable-output-escaping ?>

So I get a question mark already transformed by the transformer when I just
want the entity that I had discribed.

What am I on about you ask? What I need is for the final iHTML document
produced to contain:

<p>hello world, call me on &#59087; +12345</p>

not:

<p>hello world, call me on <?javax.xml.transform.disable-output-escaping
?>?<?javax.xml.transform.enable-output-escaping ?> +12345</p>

so that the browser can do the conversion...

 

Thanks very much

 

Lea

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


Current Thread