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

Re: Yet Another Entity Ref question!

Subject: Re: Yet Another Entity Ref question!
From: Marco Guazzone <sguazt@xxxxxxxxxxx>
Date: Fri, 20 Dec 2002 13:48:57 +0100 (CET)
ascii star entity tag
Using the encoding "ascii" or "us-ascii" it works!
I get as output:
Foobar&#169;
While with encoding "ISO-8859-1" (my standard encoding) do not.
However ... [you're thinking that I'm really pedantic ;)] ...
I insist the solution whitout the entity map (or dictionary) since this
introduce a time-consuming xpath query (I should store in an already big
XML a
tag set representig the entities map and than query it in the XSL doc
through a XPath query).
So I think that instead of a dictionary of entities it is possible to
include all the entity in DTD; e.g.:
<!ENTITY copy "&#169;">
and to eliminate element "entity" so that the user can write direclty
<label>Foobar&copy;</label>
or more generally:
<label>Foobar&ent;</label>
avoiding the Xpath query.

But I ask to myself (and to you): "Does it exist a method of outputting &
in resulting doc without using d-o-e, so that I can use my originally
solution?"
Yes I know, I'm asking for outputting a non-well-formed XML doc!!
Yes probably, to use original solution, the only way is using d-o-e in
xsl:text and xsl:value-of.
 
--------------------------------
Marco Guazzone
Software Engineer
Kerbero S.r.L. - Gruppo TC
Viale Forlanini, 36
Garbagnate M.se (MI)
20024 - Italy
mail: marco.guazzone@xxxxxxxxxxx
www: http://www.kerbero.com
Tel. +39 02 99514.247
Fax. +39 02 99514.399
--------------------------------

On Fri, 20 Dec 2002, David Carlisle wrote:

> 
> > However, with this I will produce the encode UNICODE char in the output
> > (HTML) doc; i.e.
> 
> if the system supports ascii encoding you can do
> 
> <xsl:output encoding="ASCII"/> (or sometimes US-ASCII is recognosed)
> and thenall non ascii characters will be encoded as entities or numeric
> refs on output.
> If ascii isn't known it probably knows iso-8859-1 
> 
> David
> 
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet
> delivered through the MessageLabs Virus Scanning Service. For further
> information visit http://www.star.net.uk/stats.asp or alternatively call
> Star Internet for details on the Virus Scanning Service.
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


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


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.