| Subject: [xsl] How to implement common functionality From: "Haque, Suraiya" <Suraiya.Haque@xxxxxxx> Date: Thu, 26 Jul 2001 09:35:24 -0400 | 
I have to do some text formatting in multiple XSL files using the same format. I would like to define this once in a central file and reuse it in the XSL files. Right now I have the formatting implemented for each field. In my XML, 10.00 is specified as +000000001000 and I format it to 10.00 by using <xsl:value-of select="format-number((number(substring(@DOLLARAMT,2)))div 100, '00.00')"/> I would like to define the formatting command in a central place so that I can do something like this: <xsl:value-of select="convertToDecimal(@DOLLARAMT)"/> Is there a way to do this? Can I do this in a css file? Thanks, Suraiya XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] RE: New ContextNode Quest, Michael Fitzgerald | Thread | Re: [xsl] How to implement common f, cutlass | 
| RE: [xsl] hard core xlt ;-), Joost Fleuren | Date | RE: [xsl] RE: New ContextNode Quest, Michael Kay | 
| Month |