From: Christopher Pierce
[mailto:Christopher(_dot_)Pierce(_at_)cgi-csi(_dot_)com]
<xsl:value-of
select="(translate(//AwardFullData/AwardItemizedLine/transacti
onAmount,t
ranslate(//AwardFullData/AwardItemizedLine/transactionAmount,'
0123456789
', ''), ''))"/>
Result when applied to data: 180400
The outer parens here are gratuitous, FYI.
<xsl:value-of
select="sum(translate(//AwardFullData/AwardItemizedLine[count(
./periodLi
nePeriodNumber)<1]/transactionAmount,translate(//AwardFullD
ata/AwardI
temizedLine[count(./periodLinePeriodNumber)<1]/transactionA
mount,'012
3456789', ''), ''))"/>
Result when applied to data: Can not convert #STRING to a NodeList!
As the error says, you are supplying a string argument to a function
requiring a node-set argument.
Use the node-set() function in an extension namespace to cast your strings
or use XSLTv2.0 which will has built-in functions for casting types.
HTH,
Mike
-----------------------------------
Mike Haarman,
XSL Developer,
Internet Broadcasting Systems, Inc.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--