[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: R: IQuestion about XSLT and Math Operations

Subject: Re: R: IQuestion about XSLT and Math Operations
From: drkm <darkman_spam@xxxxxxxx>
Date: Mon, 5 Dec 2005 13:09:24 +0100 (CET)
iquestion utf8
"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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.