xsl-list
[Top] [All Lists]

Re: [xsl] problem building a lookup table and find match from a different template

2006-08-30 06:27:29
Hi,
The variable is a table which contains a list of key and values. The template is to populate the table using the dataset2 elements. I am sure this is not best way to do it. Do you have better suggestion? I did not use group method here because I need to also show a check mark if the value is displayed from dataset2. So I need to know where the value is obatined from, dataset1 or dataset2.

Thanks!


From: Florent Georges <darkman_spam(_at_)yahoo(_dot_)fr>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] problem building a lookup table and find match from a different template
Date: Wed, 30 Aug 2006 10:03:12 +0200 (CEST)

Leslie Young wrote:

  Hi

> I am trying to create a table lookup using a set of data
> (dataset2), then process a different set of data
> (dataset1).

  I have a few questions to be sure to understand what you
want.  How do you apply your stylesheet?


> <xsl:variable name="recs-top" select="document('')/*/s:recs"/>

  What do you expect the value of this variable will be?

>   <!-- use dataset2 to build table    -->
>      <xsl:choose>
>       <xsl:when test="dataset2/Root">
>         <xsl:call-template name="build-rec-lookup-table">
>           <xsl:with-param name="dataset" select="dataset2/Root"/>
>         </xsl:call-template>
>       </xsl:when>
>     </xsl:choose>

  What do you expect this will do, exactly?

  Regards,

--drkm






















 p5.vert.ukl.yahoo.com uncompressed/chunked Wed Aug 30 07:13:39 GMT 2006


___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com

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


_________________________________________________________________
Get real-time traffic reports with Windows Live Local Search http://local.live.com/default.aspx?v=2&cp=42.336065~-109.392273&style=r&lvl=4&scene=3712634&trfc=1


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