Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xslt won't transform my pound sign

158 views
Skip to first unread message

lipska the kat

unread,
Oct 30, 2012, 10:34:13 AM10/30/12
to
Hi

Java 1.6.0_35 default transformer factory etc

In the web page in which the transformation is displayed

--------------------------------------------------------------------
<%@ page language="java"
contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
----------------------------------------------------------------------

The xml file being transformed

-------------------------------------------------------
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
------------------------------------------------------

the xsl file

----------------------------------------
<?xml version='1.0' encoding='UTF-8'?>
---------------------------------------

I've tried all the solutions Google supplies but I just cannot get the
transformed html to display the £ (GBP) sign at all.

I'm sure it's something that has been asked many times but I'm at a loss
to know what to do next.

Any ideas much appreciated.

thanks

lipska

--
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

Jukka K. Korpela

unread,
Oct 30, 2012, 10:41:30 AM10/30/12
to
2012-10-30 16:34, lipska the kat wrote:

> I've tried all the solutions Google supplies but I just cannot get the
> transformed html to display the £ (GBP) sign at all.

That’s not a style sheet issue, is it? This group is for discussing
style sheets (CSS).

> I'm sure it's something that has been asked many times but I'm at a loss
> to know what to do next.

Try searching some forums that discuss the topics of your problem.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

lipska the kat

unread,
Oct 30, 2012, 11:17:19 AM10/30/12
to
Really .. well thank you for pointing that out. My news server doesn't
seem to carry and newsgroups specialising in Extensible STYLESHEET
Language Transformations so I thought I might try here. Obviously not a
good idea.

ho hum, guess I'll just have to keep searching

Manuel Collado

unread,
Oct 30, 2012, 11:37:36 AM10/30/12
to
El 30/10/2012 16:17, lipska the kat escribió:
> On 30/10/12 14:41, Jukka K. Korpela wrote:
>> 2012-10-30 16:34, lipska the kat wrote:
>>
>>> I've tried all the solutions Google supplies but I just cannot get the
>>> transformed html to display the £ (GBP) sign at all.
>>
>> That’s not a style sheet issue, is it? This group is for discussing
>> style sheets (CSS).
>>
>>> I'm sure it's something that has been asked many times but I'm at a loss
>>> to know what to do next.
>>
>> Try searching some forums that discuss the topics of your problem.
>>
> Really .. well thank you for pointing that out. My news server doesn't
> seem to carry and newsgroups specialising in Extensible STYLESHEET
> Language Transformations so I thought I might try here. Obviously not a
> good idea.
>
> ho hum, guess I'll just have to keep searching

news:comp.text.xml

--
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado



lipska the kat

unread,
Oct 30, 2012, 11:53:32 AM10/30/12
to
On 30/10/12 15:37, Manuel Collado wrote:
[snip]

> news:comp.text.xml

Thanks, my news server carries this one

I solved it in the end but I'm sure comp.text.xml
will come in useful in the future

Thanks for taking the time to reply

Thomas 'PointedEars' Lahn

unread,
Nov 3, 2012, 1:38:37 PM11/3/12
to
lipska the kat wrote:

> On 30/10/12 14:41, Jukka K. Korpela wrote:
>> 2012-10-30 16:34, lipska the kat wrote:
>>> I've tried all the solutions Google supplies but I just cannot get the
>>> transformed html to display the £ (GBP) sign at all.
>>
>> That’s not a style sheet issue, is it?

It is. XSLT is the acronym for eXtensible *Stylesheet* Language
Transformations. [1]

>> This group is for discussing style sheets (CSS).

From the latest published version of the meta-FAQ of this newsgroup [2]:

| 01: ===== Q & A =====
|
| Q: What is <comp.infosystems.www.authoring.stylesheets>?
|
| A: This is an unmoderated newsgroup which passed for creation by
| votes of 166:19 as reported in <news.announce.newgroups> on
| 1997-03-20.
|
| The charter of this newsgroup, taken from the vote result
| announcement, is:
|
| This unmoderated news group is intended for the discussion of Web
| style sheets. Style sheets can make an author's life much easier.
| With style sheets, one only needs to specify presentational
| preferences once, and the style can be applied to an entire site.
| Not only that, but style sheets also reduce download time when
| one file contains all the style information.
|
|
| 02: ===== Q & A =====
|
| Q: What kinds of posts are acceptable in this news group ?
|
| A: Topics for this news group include:
|
| * How to achieve a particular effect with style sheets,
| * The relative advantages of different style sheet languages,
| * Specifications versus implementations,
| * Bugs and limitations in implementations, and
| * Questions on XSL related subjects.

I can see and foresee no problems discussing XSLT and, in general, Web style
sheet languages other than CSS here. Certainly when the result of the
transformation pertains to display in Web browsers, as it does in this case,
discussions about that are more appropriate here than in comp.text.xml.


PointedEars
___________
[1] <http://www.w3.org/Style/XSL/WhatIsXSL.html>
[2] <http://www.faqs.org/faqs/www/stylesheets/newsgroup-faq/>
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)

lipska the kat

unread,
Nov 3, 2012, 1:59:55 PM11/3/12
to Thomas 'PointedEars' Lahn
On 03/11/12 17:38, Thomas 'PointedEars' Lahn wrote:
> lipska the kat wrote:
>
>> On 30/10/12 14:41, Jukka K. Korpela wrote:
>>> 2012-10-30 16:34, lipska the kat wrote:
>>>> I've tried all the solutions Google supplies but I just cannot get the
>>>> transformed html to display the £ (GBP) sign at all.
>>>
>>> That’s not a style sheet issue, is it?

>> * Questions on XSL related subjects.
>
> I can see and foresee no problems discussing XSLT and, in general, Web style
> sheet languages other than CSS here. Certainly when the result of the
> transformation pertains to display in Web browsers, as it does in this case,
> discussions about that are more appropriate here than in comp.text.xml.

phew, that's a relief.

It was an encoding issue, not sure if it was a container issue(Tomcat)
or a Java thing, I haven't tracked it down yet but I'm trying to be
UTF-8 system wide.

In my custom tag
pageContext.getResponse().setContentType("text/html; charset=UTF-8");
fixes things for the time being.

Good to know I can come back here in future.

lipska the kat

unread,
Nov 3, 2012, 2:00:52 PM11/3/12
to Thomas 'PointedEars' Lahn
On 03/11/12 17:38, Thomas 'PointedEars' Lahn wrote:
> lipska the kat wrote:
>
>> On 30/10/12 14:41, Jukka K. Korpela wrote:
>>> 2012-10-30 16:34, lipska the kat wrote:
>>>> I've tried all the solutions Google supplies but I just cannot get the
>>>> transformed html to display the £ (GBP) sign at all.
>>>
>>> That’s not a style sheet issue, is it?

>> * Questions on XSL related subjects.
>
> I can see and foresee no problems discussing XSLT and, in general, Web style
> sheet languages other than CSS here. Certainly when the result of the
> transformation pertains to display in Web browsers, as it does in this case,
> discussions about that are more appropriate here than in comp.text.xml.

phew, that's a relief.

It was an encoding issue, not sure if it was a container issue(Tomcat)
or a Java thing, I haven't tracked it down yet but I'm trying to be
UTF-8 system wide.

In my custom tag
pageContext.getResponse().setContentType("text/html; charset=UTF-8");
fixes things for the time being.

Good to know I can come back here in future.

0 new messages