Subject: Re: [xsl] R: [xsl] IQuestion about XSLT and Math Operations From: drkm <darkman_spam@xxxxxxxx> Date: Mon, 5 Dec 2005 13:09:24 +0100 (CET) |
"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 Tilichargez cette version sur http://fr.messenger.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] R: [xsl] IQuestion about , G. Ken Holman | Thread | Re: [xsl] R: [xsl] IQuestion about , G. Ken Holman |
Re: [xsl] contains() function to se, Ragulf Pickaxe | Date | Re: [xsl] contains() function to se, David Carlisle |
Month |