[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

Subject: Re: problem building a lookup table and find match from a different template
From: "Leslie Young" <xlr8sx@xxxxxxxxxxx>
Date: Wed, 30 Aug 2006 11:51:23 -0500
leslie young
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.