Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. XSL Dropdown problem [modified]

XSL Dropdown problem [modified]

Scheduled Pinned Locked Moved ASP.NET
xmlhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    waheed awan
    wrote on last edited by
    #1

    <xsl:element name="a"> <xsl:attribute name="href"> <xsl:value-of select="concat('m','.aspx')"/> </xsl:attribute> <xsl:value-of select="aspdnsf:GetMLValue(Name)"/> </xsl:element> </xsl:element> this code creates a list of links but i want to create dropdown how can i do this

    modified on Tuesday, February 19, 2008 6:09 PM

    C 1 Reply Last reply
    0
    • W waheed awan

      <xsl:element name="a"> <xsl:attribute name="href"> <xsl:value-of select="concat('m','.aspx')"/> </xsl:attribute> <xsl:value-of select="aspdnsf:GetMLValue(Name)"/> </xsl:element> </xsl:element> this code creates a list of links but i want to create dropdown how can i do this

      modified on Tuesday, February 19, 2008 6:09 PM

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I suggest reading a book on XSLT instead of blindly copying and pasting code from the web. a is an anchor element, a link. Replace the element with a list item and wrap them in an element to create the list, and you're done.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups