|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: R: IQuestion about XSLT and Math Operations
"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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








