|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSLT: SUM function Not working.
Out of curiosity: What do you intend with the following code: > <xsl:param name="CurrentSymbol" select="Symbol[position()=current()]"/> particularly with "Symbol[position()=current()]" position() returns the position in the current node list (a number) current() returns the current node (the context node of the template) Your code selects that Symbol element whose position is equal to the value of the current node. (I believe there is no such node.) Another remark: passing current() as parameter value is unnecessary because current() outside of a predicate is always the same as . So, you can pass . instead or forget that parameter at all, since you never pass any other value. The current node is available in the called template in the same manner with ., because calling a template via xsl:call-template doesn't change the context node. Hope that helps, Oliver /-------------------------------------------------------------------\ | ob|do Dipl.Inf. Oliver Becker | | --+-- E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx | | op|qo WWW: http://www.informatik.hu-berlin.de/~obecker | \-------------------------------------------------------------------/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








