xsl-list
[Top] [All Lists]

Re: R: [xsl] IQuestion about XSLT and Math Operations

2005-12-05 05:09:24
"G. Ken Holman" wrote:

At 2005-12-05 00:23 +0100, Villani Alessandro wrote:

<?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"/>

The above isn't really necessary since you are using
it only once.

  The number of using is not relevant here, IMHO.  But I don't know why
create a document node.  Why not use:

    <xsl:param name="r50" 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>

You can just do:

   <c2><xsl:value-of select="r3 * r2"/></c2>

  That's not the same things (it's an xsl:param, not an xsl:variable).

--drkm




















        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--