[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Modify Variable value
Hi Sreeni, I have situtation where I need to find multiple or single values <xsl:for-each select="//LINE_ITEM[WARN_HG = YG'][generate-id() = generate-id(key('by-product-number', PRODUCT_NUMBER)[1])]"> <xsl:if test="position()=last()"> <xsl:choose> <xsl:when test="position()=1"> this product </xsl:when> <xsl:otherwise> these products </xsl:otherwise> </xsl:choose> </xsl:if> based on that I need to change the noun to sigular or plural. Please let me know if you have any work around for the same. It is basically string concatenation ,because of this we are looping muliple times. Regards, Senthil On 4/25/07, Sreeni Yetchina -X (syetchin - Pure Solutions at Cisco) <syetchin@xxxxxxxxx> wrote: Senthil.. You asked "Is there any way.....?" The answer is NO, if you consider standard XSLT But when you are able to limit your XSLT file into a particular domain, you can do achieve the similar Variable effect with the third part embedded code in XSLT files (Example: JavaScript/Java Extensions/C# Extensions etc). Really tons of XSLT code is around without the actual variable in it. If you have any particular situation that is expecting a variable use, please let us know, that can be resolved with a work around Sreeni
|
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
|