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