Altova Mailing List Archives

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

From: drkm <darkman_spam@-------->
Date: 12/5/2005 12:10:00 PM
"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=""
> > 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).



Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Tilichargez cette version sur


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.