Subject: Re: [xsl] Tricky inclusion match From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 29 Mar 2005 18:26:06 -0500 |
<xsl:template match="data"> <xsl:apply-templates select="colors"/> <!-- if we weren't going to select using the key, we could go straight to the pictures; but then we'd be testing each one --> </xsl:template>
<xsl:template match="colors"> <xsl:apply-templates select="key('pictures-by-color',color)"/> <!-- by using the key we select just the pictures that have at least one color matching a color in your set --> </xsl:template>
picture sample #2 picture sample #4 picture sample #5
Cheers, Wendell
Wendell: I am much insterested in your XSLT 1.0 solution to the original colors problem. Indeed, it is the "simple" version of the problem which I am facing. Thanks. Karl
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Tricky inclusion match, Karl Stubsjoen | Thread | Re: [xsl] Tricky inclusion match, Aron Bock |
Re: [xsl] Tricky inclusion match, Karl Stubsjoen | Date | Re: [xsl] Tricky inclusion match, Aron Bock |
Month |