Results 1 to 3 of 3

Thread: Dynamic Keys in XSLT

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898

    Angry

    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.

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    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?


    Mark
    -------------------

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width