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. General Programming
  3. XML / XSL
  4. XSLT - HTML

XSLT - HTML

Scheduled Pinned Locked Moved XML / XSL
xmlhtmlregexhelpquestion
3 Posts 3 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.
  • H Offline
    H Offline
    hatim_ali
    wrote on last edited by
    #1

    hi folks... I need to change the color of tr to red when @result attribute contains "failed". When i executed above snippet i got the following error. "End tag 'xsl:when' doesn't match the start tag 'tr'"?? Any workarounds ?? Thanks in advance... Regards, Hatim Ali.

    C H 2 Replies Last reply
    0
    • H hatim_ali

      hi folks... I need to change the color of tr to red when @result attribute contains "failed". When i executed above snippet i got the following error. "End tag 'xsl:when' doesn't match the start tag 'tr'"?? Any workarounds ?? Thanks in advance... Regards, Hatim Ali.

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

      Well, you've not posted your xslt, but the problem is exactly as the message says, and the work around is to make your html valid xml. You have two tr starting elements, and only one is being closed. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

      1 Reply Last reply
      0
      • H hatim_ali

        hi folks... I need to change the color of tr to red when @result attribute contains "failed". When i executed above snippet i got the following error. "End tag 'xsl:when' doesn't match the start tag 'tr'"?? Any workarounds ?? Thanks in advance... Regards, Hatim Ali.

        H Offline
        H Offline
        Het2109
        wrote on last edited by
        #3

        Try something like this giving condition in this way dont know what is there in ur xsl, but this might work if there is only 1 condition or try with choose here age artist title etc are tags of XML try this out! :)Be Humble in Victory and Strong in Defeat.:) -Het

        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