Results 1 to 3 of 3

Thread: How do I filter records?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    75

    How do I filter records?

    How do I filter certain records in my XSL?

    Example:

    - <BOOK>
    <CODE>10001</CODE>
    <TITLE>TEST TITLE</TITLE>
    </BOOK>

    - <BOOK>
    <CODE>10002</CODE>
    <TITLE>TEST TITLE2</TITLE>
    </BOOK>

    In my XSL:

    <xsl:template match="/">

    Then how do I just filter where Book code=10001 ?

    Thanks!

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    Predicates
    Code:
    <xsl:template match="BOOK[CODE = '10001']"/>
    [Edit] Just noticed the case of your Xml elements

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    75
    Ok, given that, let's take it one step further.

    I have this node "fv".

    Example:

    <fv sm="2" class="css365AA9ADE4FED3CF81096089A5F1FF8ED">10</fv>

    I've no idea what sm or class is (this XML was generated by another program.

    Now, given I know the node is "fv" how do I filter on the value "10" ?

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