Subject: Re: [xsl] $variables with xsl:key() From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 25 Jul 2006 15:54:08 -0400 |
<!-- reaching in and applying templates to each individual Record, not to their Records wrapper; also assuming you've declared $vP2 so those nodes actually get selected -->
<xsl:with-param name="type" select="@type" /> </xsl:apply-templates> </xsl:for-each> </table> </xsl:template>
Cheers, Wendell
On 7/25/06, Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> wrote:In the best case, we'd have a complete if reduced sample where records would appear matching oldIDs you actually represented ... this makes it much easier to run the XSLT engines we keep in our heads, or even engines we run in our computers, to test everything. (List participants have been known to test each other's code in live processors from time to time.)
The numbers are hypothetical. Let it suffice that at the end of the day I need @oldID to match disabPrimary.
>What do you mean by "key declarations"?
By "key declaration" I mean the top-level element that sets up the key and assigns it a name, as in
<xsl:key name="things-by-id" match="thing" use="@id"/>
Here goes....
<xsl:key name="types" match="option" use="@type" /> <xsl:key name="oldID" match="Record" use="disabPrimary" />
So, now that that obstacle is out of the way, howto match up to these keys in a meaingful way?
-S
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] $variables with xsl:key(), Steve | Thread | [xsl] forcing non breaking spaces?, Steve |
Re: [xsl] How to use document() of , Abel Braaksma Online | Date | [xsl] Variable creation & use probl, cielo rosso |
Month |