PDA

Click to See Complete Forum and Search --> : Dynamic Keys in XSLT


Bill Crawley
Jan 23rd, 2001, 08:07 AM
Hi All,

If I have a key declared in the format :

<xsl:key name="givePolTotalTrans" match="POL_TOTAL_TRANS_PREMIUM" use="concat(@POLICY_ID,':::',@DRIVER_NUMBER,':::',@VEHICLE_NUMBER,':::',@DWELLING_NUMBER)"/>

and use :

<xsl:variable name="getPolTotalTrans" select="key('givePolTotalTrans', concat(@POLICY_ID,':::0:::0:::0'))"/>

I get the expected results returned to the variable because I have made the key explicit.

My question is though, if I wanted to use the above key, but in my select statement say that I dont care what value is in DRIVER_NUMBER and DWELLING_NUMBER but VEHICLE_NUMBER must be greater than 0, how would I write the syntax for this.

Mark Sreeves
Jan 29th, 2001, 08:36 AM
I normally complian about people who write "have a look at this site you might find what you need" sort of replies, but seeing as you haven't had any replies at all yet.....


Have a look at this site you might find what you need:

http://www.mulberrytech.com/xsl/xsl-list/

or have you already looked there?

Bill Crawley
Jan 29th, 2001, 09:00 AM
i obtained a reply that got me closer to what I was trying to do, but the basic answer is that you cant do it.

Thanks anyway.

Bill