Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 15th, 2010, 09:02 AM
Authorized User
 
Join Date: Mar 2010
Posts: 45
Thanks: 6
Thanked 0 Times in 0 Posts
Default Function MAX is not working

Hi ,

iam facing a unique issue

i want to print maximum postion by using the function MAX

My style sheet is working fine in Jdev but same XSL sheet is giving error when i run it in oracle Applications.

below is xsl logic



Code:
<xsl:template name="ttpgds" match="ARXEURSL" mode="temp2">
<xsl:variable name="x">	
<xsl:for-each-group select="G_ROW[INTRA_EU_TRX_CODE =('GOOD')]" group-by="concat(VAT_TAX_NO,BILL_CUST_NAME,INTRA_EU_TRX_CODE)">
<CHKPST><xsl:value-of select="position()"/></CHKPST><xsl:text>&#xD;</xsl:text>
</xsl:for-each-group>
</xsl:variable>
<xsl:for-each select="$x">
<xsl:variable name="jCount" select="max(CHKPST)"/>
<xsl:value-of select="ceiling($jCount)"/>
</xsl:if>
</xsl:for-each> 
</xsl:template>
Error iam getting in oracle applications.

Caused by: oracle.xdo.parser.v2.XPathException: Expected ')' instead of 'CHKPST'.

Thanks
Anil
 
Old March 15th, 2010, 09:24 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

I am not good at reading and parsing unindented code but you seem to have a closing </xsl:if> without any opening <xsl:if> so I doubt that snippet even passes parsing with an XML parser.
Other than that I suggest you raise problems with a particular XSLT processor in a forum dedicated to that processor so look for a forum on oracle.com.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
 
Old March 15th, 2010, 09:28 AM
Authorized User
 
Join Date: Mar 2010
Posts: 45
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Hi,

Sorry That </xsl:if> is wrongly pasted.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Max function to return single rows. beerOne SQL Language 1 November 6th, 2008 04:52 PM
Aggregate function MAX creating problem..? Manu SQL Language 4 May 30th, 2006 04:41 AM
Aggregate Function MAX, SUM Manu SQL Language 2 May 30th, 2006 04:40 AM
Using SQL function MAX within ASP code TwoCoby Oracle ASP 1 December 21st, 2003 07:23 PM
Problems using the MAX Function Trojan_uk SQL Server ASP 0 November 26th, 2003 11:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.