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. special character problem in href tag using xslt [modified]

special character problem in href tag using xslt [modified]

Scheduled Pinned Locked Moved XML / XSL
xmlhelptutorial
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.
  • A Offline
    A Offline
    alok_2k3
    wrote on last edited by
    #1

    Hi All, I am writing the following code " " The problem is that my "FileRef" contains special character in it (like test's.aspx, the single quotes in it).In the browser the URL is shown as test's.aspx. Is there any work around for this. I don't know how to handle the unsafe character in xslt. Thanks in Advance Alok.... modified on Wednesday, April 15, 2009 10:39 AM

    modified on Wednesday, April 15, 2009 10:43 AM

    G 1 Reply Last reply
    0
    • A alok_2k3

      Hi All, I am writing the following code " " The problem is that my "FileRef" contains special character in it (like test's.aspx, the single quotes in it).In the browser the URL is shown as test's.aspx. Is there any work around for this. I don't know how to handle the unsafe character in xslt. Thanks in Advance Alok.... modified on Wednesday, April 15, 2009 10:39 AM

      modified on Wednesday, April 15, 2009 10:43 AM

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      IMHO, I would avoid using "special" characters and white space in a URL since it always gets URL-encoded. In your case, the single quote will be change to %28. Besides, since XSLT is really XML, you can use " instead of '. Please note that you can place characters such as a single quote in CDATA sections!

      "We make a living by what we get, we make a life by what we give." --Winston Churchill

      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