|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: problem building a lookup table and find match fro
Hi drkm,
Obviously, I am clueless with this. Thanks for being patient with me. I thought I used the following template to populate s:recs table. <xsl:template name="build-rec-lookup-table"> <xsl:param name="dataset"/> <s:recs>
<xsl:for-each select="$dataset/Item">
<s:rec>
<s:keyid><xsl:value-of select="@ID" /></s:keyid>
<s:value><xsl:value-of select="@Value" /></s:value>
</s:rec>
</xsl:for-each>
</s:recs></xsl:template> What I need to do is to process 2 elements in a xml: dataset1 and dataset2. If same id exists in dataset2, display warning, then display the value from dataset2. If not found in dataset2, display dataset1 value. Maybe I am using a wrong approach to solve this. Your suggestion to a different approach would be greatly appreciated. Many Thanks! _________________________________________________________________ Windows Live Spaces is here! Its easy to create your own personal Web site. http://spaces.live.com/signup.aspx
|
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
|

Cart








