xsl-list
[Top] [All Lists]

RE: Weird Problem

2004-08-18 12:12:27

Its not about Xselerator or any other IDE. Its about what XSLT processor is being used for the transformation.
Xselerator can be configured to run multiple transformation engines...
by default Xselerator uses MSXML... so to reproduce your problem , check out what transformation engine your cold fusion uses, and configure the xselerator with that processor. and see if you can replicate the problem..

As such there is nothing wrong with that for-each.. if you want to get more, send more information.. may be ur XML and your XSL .. some one can check the whole file and see if problem is any where else...

Hope this helps
Vasu


From: "john lee" <excel_man(_at_)hotmail(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Weird Problem
Date: Wed, 18 Aug 2004 17:44:12 +0000

Hi All,

I encountered a strange problem. I use Xselerator to merge my xml and xsl, and it generated HTML successfully, but when I use coldfusion to merge the report, it generated a java.lang.null Exception Error.

After looking deeply into the problem, I found out this line is what caused it bomb:

<xsl:key name="keyAccount" match="Results/XML_Report/Subject/Trades/Record" use="Account_Type" />

<xsl:for-each select="//Record[generate-id(.) = generate-id(key('keyAccount', Account_Type)[1])]"> --> This line caused it to bomb

Anybody knows why xselerator can run it without any problem, but generates an error in Coldfusion?
Are there any alternative to do the grouping ?

Any idea will be appreciated, Thanks

Cezar

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


--+------------------------------------------------------------------
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>
--+--


_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger



<Prev in Thread] Current Thread [Next in Thread>