[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] problem building a lookup table and find match from a different template
Subject: Re: [xsl] 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
|
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
|