0

Please tell me what i am doing wrong, all i want is to print this xml file with the xslt file i have.

<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type="text/xsl" href="../App_themes/videoPlayer.xslt"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<title>Exam Security Whats OK and whats Not</title>
<location>https://s3.amazonaws.com/arrtstreaming/ExamSecurity.mp4</location>
<images>https://www.arrt.org/svideo/images/movieThumb.jpg</images>
<annotation>
ARRT takes the confidentiality of its examinations very seriously. Watch this video
to understand whats OK and what's not.
</annotation>
</track>

<track>
<title>Become Radiologists</title>
<location>http://www.youtube.com/watch?v=QfhD3nk6hbM</location>
<images>https://www.arrt.org/svideo/images/Become.jpg</images>
<annotation>How to become radiologists</annotation>
</track>

<track>
<title>What is radiologists technologists</title>
<location>http://www.youtube.com/watch?v=bSzk6MDS154</location>
<images>https://www.arrt.org/svideo/images/RadTech.jpg</images>
<annotation>Definition and explaination of what is radiologist technologists.</annotation>
</track>

<track>
<title>Radiology Careers</title>
<location>http://www.youtube.com/watch?v=giAKYAq_3y4</location>
<images>https://www.arrt.org/svideo/images/Technologists.jpg</images>
<annotation>All you want to know about radiology careers</annotation>
</track>
</trackList>
</playlist>

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="playlist">
<html>
<body>
<h2>My CD Collection</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th align="left">Title</th>
<th align="left">Artist</th>
</tr>
<xsl:for-each select="trackList/track">
<tr>
<td>
<xsl:value-of select="annotation" />
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by tinymark
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.