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