Subject: Re: [xsl] Yet Another Entity Ref question! From: Marco Guazzone <sguazt@xxxxxxxxxxx> Date: Fri, 20 Dec 2002 13:48:57 +0100 (CET) |
Using the encoding "ascii" or "us-ascii" it works! I get as output: Foobar© 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 "©"> and to eliminate element "entity" so that the user can write direclty <label>Foobar©</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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Yet Another Entity Ref qu, David Carlisle | Thread | Re: [xsl] Yet Another Entity Ref qu, Wendell Piez |
RE: [xsl] Yet Another Entity Ref qu, Michael Kay | Date | RE: [xsl] [XSL] extracting a verse, bryan |
Month |