Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   Output string using XSLT (http://www.velocityreviews.com/forums/t170018-output-string-using-xslt.html)

thomas 10-12-2005 05:55 PM

Output string using XSLT
 
Hi folks,

I was wandering how I can output a symbol in front of the price of
something, at the moment, it only outputs the number.

Heres the line from the xsl page i'm using:-

<td><xsl:apply-templates select="./price" /></td>


and heres the xml file:-

<cat>
<data>
<item>hat</item>
<colour>black</colour>
<price>45</price>
</data>
</cat>



Tjerk Wolterink 10-12-2005 07:24 PM

Re: Output =?ISO-8859-1?Q?=A3_string_using_XSLT?=
 
thomas wrote:
> Hi folks,
>
> I was wandering how I can output a symbol in front of the price of
> something, at the moment, it only outputs the number.
>
> Heres the line from the xsl page i'm using:-
>
> <td><xsl:apply-templates select="./price" /></td>
>
>
> and heres the xml file:-
>
> <cat>
> <data>
> <item>hat</item>
> <colour>black</colour>
> <price>45</price>
> </data>
> </cat>
>
>


Use unicode or some entities??
I think there is a html entity for the symbol you want.

Doesnt that solve your problem??

Richard Tobin 10-12-2005 08:34 PM

Re: Output string using XSLT
 
In article <J6c3f.53$fz3.21@newsfe7-gui.ntli.net>,
thomas <thomas_patton@ntlworld.com> wrote:

>I was wandering how I can output a [pound] symbol in front of the price of
>something, at the moment, it only outputs the number.
>
>Heres the line from the xsl page i'm using:-
>
><td><xsl:apply-templates select="./price" /></td>


<td>&#xa3;<xsl:apply-templates select="./price" /></td>

-- Richard

Peter Flynn 10-13-2005 01:06 AM

Re: Output =?UTF-8?B?ow==?= string using XSLT
 
thomas wrote:

> Hi folks,
>
> I was wandering how I can output a symbol in front of the price of
> something, at the moment, it only outputs the number.
>
> Heres the line from the xsl page i'm using:-
>
> <td><xsl:apply-templates select="./price" /></td>


<td><xsl:text>£</xsl:text><xsl:apply-templates select="price"/></td>

///Peter



All times are GMT. The time now is 11:22 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.