cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Engelhart <mengelh...@earthtrip.com>
Subject Re: Newbie Question: XSL Translation
Date Mon, 21 Feb 2000 13:57:09 GMT
Daniel F. Jones wrote:

> I need to replace all $ with $$ so that prices will display correctly in
> WML.
> 
> For example, the XSL translation of
> 
> <product>
> <price>$100.00</price>
> </product>  
> 
> produces an error in WML when using <xsl:apply-templates/> because the WML
> digest compiler can't find the variable "100.00"
> 
> Thanks, Dan

If you can, you shouldn't put the currency in with the price so that you can
localize it later. 

I would do something like:
<product>
    <price currency="USD">100.00</price>
</product>

and then use the stylesheet to add the $ or whatever currency is added
later.

Mike


Mime
View raw message