General discussion

  • Creator
    Topic
  • #2175358

    XML QUESTION

    Locked

    by elrey103 ·

    My friend is looking for how to do something in XML – here’s what he wrote……
    he knows XML fairly well – but can’t figure out for the life of him how to get it to ALPHABITZE the stuff…
    There are lots of tutorials and stuff that assume he knows too much already apparently….
    Please write a complete script that will pull the data from the following XML database and list the names in alphabetical order and display it on a webpage



    Ed


    Jeremy


    Frank

All Comments

  • Author
    Replies
    • #3330741

      Reply To: XML QUESTION

      by jaqui ·

      In reply to XML QUESTION

      I would recommend your friend uses a perlscript cgi for the sorting, have it send it as the xml.
      xml is more markup than data manipulation, designed for layout.
      a scripting language has the tools for a sort already.
      I’m not sure it’s possible to run a sort in a layout language.

    • #3329120

      Reply To: XML QUESTION

      by grantwparks ·

      In reply to XML QUESTION

      If you an XSL transform facility available you can use XSL stylesheet:







      Unsorted

      Sorted by name








    • #3233088

      Reply To: XML QUESTION

      by sara l ·

      In reply to XML QUESTION

      Data is coming from a database, right? Can’t you just use an ORDER BY clause in the SQL statement?

      Just a thought.

Viewing 2 reply threads