Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How Can I Display Certain ID’s From XML In XSLT?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36110

    Hi All,

    For my university module, I need to prepare a website that shows lots of juices for sale. The information is brought in from my XML page, which is broken down as follows.









    The Carrot Supreme



    Ginger - Celery Stalks - Carrots - Parsnips



    Ginger - Celery Stalks - Carrots - Parsnips - Sparkling Water




    This juice drink will fool the taste buds. At once it tastes earthy, and in the next instant it tastes like carrots. This is a full on fun drink!!




    £2.50






    The Clear Light



    Cucumber - Beet - Rubarb - Carrots - Turnip - Celery



    Cucumber - Beet - Rubarb - Carrots - Turnip - Celery - Sparkling Water




    This juice tends to be sweet even though there has been no real sweeteners placed in this drink.
    This is a testimony that fruits and vegetable when mixed together can be very surprising.
    Lets say this is a "bouquet" of the juice drinks.




    £3.50






    Here is my XSLT Code.










    Yum Juices

















    Fruit Type:




    Drink Ingredients:





    about:





    Price:




    The problem that I am having is that the first juice drink is being displayed all the time? How can I change it so that the XSLT displays all three different juices?

    Many thanks!!
    Daz.

    #94599

    I have had to remove some of the code because I had to many characters, but in the XSLT, there is another div class productblock. When the XML page is displayed, there should actually be three juices shown, and not two.
    Daz.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.