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. xsl:value-of

xsl:value-of

Scheduled Pinned Locked Moved XML / XSL
questionxmlhelp
9 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.
  • S Offline
    S Offline
    Savas Cilve
    wrote on last edited by
    #1

    Hi, I'm creating wordml file with xsltransform. I need to get some images from my localhost. When I write http://localhost/images/...jpg in the wordml file there is no problem. But I wrote in the xsl like: she says "Missing mandatory attribute 'select'. In the same way, I wrote same thing happened. How can I get these images? Thanks... Savas

    S 1 Reply Last reply
    0
    • S Savas Cilve

      Hi, I'm creating wordml file with xsltransform. I need to get some images from my localhost. When I write http://localhost/images/...jpg in the wordml file there is no problem. But I wrote in the xsl like: she says "Missing mandatory attribute 'select'. In the same way, I wrote same thing happened. How can I get these images? Thanks... Savas

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      savasorama wrote:

      When I write http://localhost/images/...jpg in the wordml file there is no problem.

      So why don't you just write the url into the wordml file.?


      "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

      www.troschuetz.de

      S 1 Reply Last reply
      0
      • S Stefan Troschuetz

        savasorama wrote:

        When I write http://localhost/images/...jpg in the wordml file there is no problem.

        So why don't you just write the url into the wordml file.?


        "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

        www.troschuetz.de

        S Offline
        S Offline
        Savas Cilve
        wrote on last edited by
        #3

        :) because I'm generating xsl with code and then transforming to wordml. I wrote this url while debugging. So I need xsl:value-of Savas

        S 1 Reply Last reply
        0
        • S Savas Cilve

          :) because I'm generating xsl with code and then transforming to wordml. I wrote this url while debugging. So I need xsl:value-of Savas

          S Offline
          S Offline
          Stefan Troschuetz
          wrote on last edited by
          #4

          Ok, but do I understand right that finally at some place in the wordml document a URL should occur?


          "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

          www.troschuetz.de

          S 1 Reply Last reply
          0
          • S Stefan Troschuetz

            Ok, but do I understand right that finally at some place in the wordml document a URL should occur?


            "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

            www.troschuetz.de

            S Offline
            S Offline
            Savas Cilve
            wrote on last edited by
            #5

            Yes you're right. What should I write into the xsl to generate url in the wordml? Savas

            S 1 Reply Last reply
            0
            • S Savas Cilve

              Yes you're right. What should I write into the xsl to generate url in the wordml? Savas

              S Offline
              S Offline
              Stefan Troschuetz
              wrote on last edited by
              #6

              Simply writing the URL should be sufficient (will be copied as it is into the output).


              "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

              www.troschuetz.de

              S 1 Reply Last reply
              0
              • S Stefan Troschuetz

                Simply writing the URL should be sufficient (will be copied as it is into the output).


                "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

                www.troschuetz.de

                S Offline
                S Offline
                Savas Cilve
                wrote on last edited by
                #7

                Writing only the URL is not sufficient. When I did this it said 'http://localhost.....' is not a valid XPath. So I tried string('http://....'). Finally I tried; but still says mandatory attribute select is missing... Savas

                S 1 Reply Last reply
                0
                • S Savas Cilve

                  Writing only the URL is not sufficient. When I did this it said 'http://localhost.....' is not a valid XPath. So I tried string('http://....'). Finally I tried; but still says mandatory attribute select is missing... Savas

                  S Offline
                  S Offline
                  Stefan Troschuetz
                  wrote on last edited by
                  #8

                  I did mean you should simply write it without the xsl:value-of. You already have the URL so what should be selected. concat('http://localhost/images/', $value) "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cookwww.troschuetz.de

                  S 1 Reply Last reply
                  0
                  • S Stefan Troschuetz

                    I did mean you should simply write it without the xsl:value-of. You already have the URL so what should be selected. concat('http://localhost/images/', $value) "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cookwww.troschuetz.de

                    S Offline
                    S Offline
                    Savas Cilve
                    wrote on last edited by
                    #9

                    Yeah I got it :) These two worked now. My last and yours. Actually the problem was silliness of ex-writers!! Variable names was like varValue1, varValue2, xslAtt1, xslAtt2-3..... I changed these silly names and problem appeared clearly :) Thank you so much for your help. I'll disturb you on another problem ;) Savas

                    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