Subject: Re: [xsl] R: [xsl] IQuestion about XSLT and Math Operations From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sun, 04 Dec 2005 20:48:02 -0500 |
Hi, thank you for your answer, but i think i explain my problem in a bad way.
I say exactly r11/c1, i want to use in my next math operations the value that i'll found in that child (r11/c1) of xsl file. I hope i explain my problem in a right way.
Excuse me for my poor english ;)
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/> <xsl:template match="parameters"> <xsl:param name="r50"> <xsl:value-of select="r3*r2"/>
</xsl:param> <elab> <tab0> <r10> <c0>null</c0> <c1> <xsl:value-of select="r2"/> </c1> <c2><xsl:value-of select="$r50"/></c2>
</r10> <r11> <c0> <xsl:value-of select="r2"/> </c0> <c1> <xsl:value-of select="r2 - r6"/> </c1> <c2>null</c2> </r11> <r12> <c0>null</c0> <c1> <xsl:value-of select="r2 - r6"/> </c1> <c2> How I can perform, if possible , this type of operation: [value of r11/c1 + value of r12/c1] whithout use xsl:param. </c2> </r12>
<xsl:template match="parameters"> <xsl:variable name="r50"> <xsl:value-of select="r3*r2"/> </xsl:variable> <xsl:variable name="diff" select="r2 - r6"/> <elab> <tab0> <r10> <c0>null</c0> <c1> <xsl:value-of select="r2"/> </c1> <c2><xsl:value-of select="$r50"/></c2> </r10> <r11> <c0> <xsl:value-of select="r2"/> </c0> <c1> <xsl:value-of select="$diff"/> </c1> <c2>null</c2> </r11> <r12> <c0>null</c0> <c1> <xsl:value-of select="$diff"/> </c1> <c2> <xsl:value-of select="2 * $diff"/> </c2> </r12>
-- Upcoming XSLT/XSL-FO hands-on courses: Denver,CO March 13-17,2006 World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] R: [xsl] IQuestion about , Kamal Bhatt | Thread | Re: [xsl] R: [xsl] IQuestion about , drkm |
Re: [xsl] XSLT Processing w/ Embedd, Michael B Allen | Date | Re: [xsl] node-set processing, G. Ken Holman |
Month |