Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: XSLT Grouping

  1. #1
    New Coder
    Join Date
    Dec 2002
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    XSLT Grouping

    Hi,
    I am trying to output a "select" field from the sample XML below:

    <tree>
    <option>Ducks</option>
    <option>Cows</option>
    <option>Sheep</option>
    <option>Sheep</option>
    <option>Ducks</option>
    <option>Cows</option>
    <option>Cows</option>
    </tree>

    I need to group the option values to produce the sample HTML:

    <select name="animals">
    <option>Cows</option>
    <option>Ducks</option>
    <option>Sheep</option>
    </select>

    Can anyone help me with the grouping in XSLT?

    I have read about Meunchian Grouping, but am confused...

    Thanks!

  • #2
    Regular Coder
    Join Date
    Mar 2003
    Posts
    176
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,
    I've just started with xml but I found this in my travels.
    http://www.topxml.com/xsl/examplelistboxes_var.asp
    It should be helpful.


  •  

    Posting Permissions

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