[xsl] Can you help me out ?

Subject: [xsl] Can you help me out ?
From: "john lee" <excel_man@xxxxxxxxxxx>
Date: Wed, 18 Aug 2004 19:42:54 +0000
Hi Wendell,

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? I think the problem is with the match="...." area, but I have keep changing the value, it still wont work. It's either generating the error or display the html output without the <xsl:for-each> part.

This is the structure of my xml data:
<Results>
 <XML_Report>
   <Subject>
      <Trades>
         <Record>
               <Account_Name></Account_Name>
               <Account_Type></Account_Type>
         </Record>
        <Record>
        </Record>
     </Trades>
  </Subject>
 </XML_Report>
</Results>

Are there any alternative to do the grouping ?

Any idea will be appreciated, Thanks

Cezar

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail


Current Thread