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. & in XSL parameters

& in XSL parameters

Scheduled Pinned Locked Moved XML / XSL
questioncsharpxml
7 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
    Atara
    wrote on last edited by
    #1

    I send to the xsl string parameter as strPathFiles = "C:\Documents and Settings.." args.AddParam("strPathFiles", "", strPathFiles) Me.myXslSrcTransform.Transform(oXPathNav, args, swContent, Nothing) '(This is vb .Net code) I want to use it in tag as src attribute: myDir\myFile.gif but the xsl parses it to - "C:\Documents and Settings" What string do I need to send to the xsl that will not be parsed, or else, - How can I force the xsl to not parse the string? Thanks. Atara

    H 1 Reply Last reply
    0
    • A Atara

      I send to the xsl string parameter as strPathFiles = "C:\Documents and Settings.." args.AddParam("strPathFiles", "", strPathFiles) Me.myXslSrcTransform.Transform(oXPathNav, args, swContent, Nothing) '(This is vb .Net code) I want to use it in tag as src attribute: myDir\myFile.gif but the xsl parses it to - "C:\Documents and Settings" What string do I need to send to the xsl that will not be parsed, or else, - How can I force the xsl to not parse the string? Thanks. Atara

      H Offline
      H Offline
      henningbenk
      wrote on last edited by
      #2

      Maybe the disbale-output-escaping Attribute in xsl:value-of will help.

      A 2 Replies Last reply
      0
      • H henningbenk

        Maybe the disbale-output-escaping Attribute in xsl:value-of will help.

        A Offline
        A Offline
        Atara
        wrote on last edited by
        #3

        Thanks. I will try it Atara

        1 Reply Last reply
        0
        • H henningbenk

          Maybe the disbale-output-escaping Attribute in xsl:value-of will help.

          A Offline
          A Offline
          Atara
          wrote on last edited by
          #4

          I tried links_files\ref2_books.gif

          myDir\myFile.gif

          In the

          , the string is exactly as I want it, but in the I still get - "C:\Documents and Settings" Maybe disable-output-escaping has no effect in because it might cause illegal-xml . Any other suggestions? Thanks, Atara

          H 1 Reply Last reply
          0
          • A Atara

            I tried links_files\ref2_books.gif

            myDir\myFile.gif

            In the

            , the string is exactly as I want it, but in the I still get - "C:\Documents and Settings" Maybe disable-output-escaping has no effect in because it might cause illegal-xml . Any other suggestions? Thanks, Atara

            H Offline
            H Offline
            henningbenk
            wrote on last edited by
            #5

            I just tried to reproduce your problem, but I get ![](C:\Documents and Settings..myDir\myFile.gif) even without using "disable-output-escaping". Do you use a special encoding or xsl:output?

            A 1 Reply Last reply
            0
            • H henningbenk

              I just tried to reproduce your problem, but I get ![](C:\Documents and Settings..myDir\myFile.gif) even without using "disable-output-escaping". Do you use a special encoding or xsl:output?

              A Offline
              A Offline
              Atara
              wrote on last edited by
              #6

              In the xsl file, I use It all started when I discovered that I have a problem when my path contains special unicode chars, so I tried to replace all non-Alpha-Numeric characters with their corresponding html entities. so in VB .Net I get the unicodePath, I replace the characters I want, and I send it as parameters to the XSL. If there is a simpler way, I would like to know about it... Thanks Atara

              A 1 Reply Last reply
              0
              • A Atara

                In the xsl file, I use It all started when I discovered that I have a problem when my path contains special unicode chars, so I tried to replace all non-Alpha-Numeric characters with their corresponding html entities. so in VB .Net I get the unicodePath, I replace the characters I want, and I send it as parameters to the XSL. If there is a simpler way, I would like to know about it... Thanks Atara

                A Offline
                A Offline
                Atara
                wrote on last edited by
                #7

                (sorry, I forgot to set the Do not treat <'s as HTML tags) In the xsl file, I use Atara

                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