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. XML XSL problem

XML XSL problem

Scheduled Pinned Locked Moved Web Development
xmlhelpdatabase
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.
  • M Offline
    M Offline
    Mortis
    wrote on last edited by
    #1

    Hey, I'm trying to write a basic Video shop XMLS webpage/database and i'm havin a slight problem with the XSL. just wondering if someone would mind pointing out my probably obvious mistake heres the code: //XML Mikeys Video Shop Kill Bill 2 Action DVD 4.99 18 Uma Thurman Lucy Liu //DTD //XSL Videos available at:

    ()

    Genre:

    Price:

    Rating:

    Actors:

    xxxZZZ

    //////////////////////////////////// The problem is in the XSL i think, it doesnt print a list of the actors, only xxxZZZ howevery many times i put actors in that film any help greatly appriciated

    H 1 Reply Last reply
    0
    • M Mortis

      Hey, I'm trying to write a basic Video shop XMLS webpage/database and i'm havin a slight problem with the XSL. just wondering if someone would mind pointing out my probably obvious mistake heres the code: //XML Mikeys Video Shop Kill Bill 2 Action DVD 4.99 18 Uma Thurman Lucy Liu //DTD //XSL Videos available at:

      ()

      Genre:

      Price:

      Rating:

      Actors:

      xxxZZZ

      //////////////////////////////////// The problem is in the XSL i think, it doesnt print a list of the actors, only xxxZZZ howevery many times i put actors in that film any help greatly appriciated

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

      yes the problem is with ur xsl. you wrongly refering to the actor element just replace the following code for ur Actor. here ur are refering to the path Cast/Actor and again in value-of select also you are refering to "Actor" which is not correct. becuase when u refer to Cast/Actor it points to actor only so now u can just use a . (dot) to represent the same. or u can use text() function to get the text value. Actors:

      xxxZZZ

      or Actors:

      xxxZZZ

      Harinath Cybernet software systems pvt. ltd. 3, Bishop wallers avenue east, mylapore chennai India-600004

      A 1 Reply Last reply
      0
      • H harinath

        yes the problem is with ur xsl. you wrongly refering to the actor element just replace the following code for ur Actor. here ur are refering to the path Cast/Actor and again in value-of select also you are refering to "Actor" which is not correct. becuase when u refer to Cast/Actor it points to actor only so now u can just use a . (dot) to represent the same. or u can use text() function to get the text value. Actors:

        xxxZZZ

        or Actors:

        xxxZZZ

        Harinath Cybernet software systems pvt. ltd. 3, Bishop wallers avenue east, mylapore chennai India-600004

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

        yeah, thanks for the help on that one works fine now

        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