[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lug-l] Is there any way to do math in XML files
You can do math with XSLT, though I'm not sure what you're trying to accomplish.
http://www.xml.com/pub/a/2001/05/07/xsltmath.html
On Tue, Feb 7, 2012 at 6:29 PM, Derek LaHousse <dlahouss@xxxxxxx> wrote:
> Magic.
>
> But seriously, XML is just DATA. You'd need to use a parser to pull out
> the values, convert them, and write them back. Also, it sorta sounds
> like you shouldn't be using XML here.
>
> On 02/07/2012 08:49 PM, Craig Kimmer wrote:
>> Hello,
>>
>> Is there anyway to do math in an XML file. I.e. an XML file that
>> is an control file for a program and allows input and output commands to
>> be controlled by the end user. But all numeric values are in metric
>> values and I would like them in imperal values. The values are outputed
>> to the XML file as variables called in text lines and such.
>>
>>
>> -----Craig Kimmer
>>
>> --
>> ---------
>> Blackholes are were God forgot and divided by ZERO!!!
>