I just started with XML and XSLT and I was assigned to create a MODS XML file and display certain parts of it but only the table row appears when I put the code through the tester, and I put the XML and the XSLT through validators but no obvious errors have arisen. I think it may be a problem with the nested tags, but I can't do much about that due to the nature of the MODS record. Any help would be greatly appreciated!
XML: `
<?xml version="1.0" encoding="UTF-8"?>
<mods version="3.7" xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-7.xsd">
<titleInfo>
<title>Learning XML</title>
</titleInfo>
<name>
<namePart>
<given>Erik T</given>
<family>Ray</family>
</namePart>
</name>
<typeOfResource authority="http://id.loc.gov/vocabulary/resourceTypes/txt">Text</typeOfResource>
<genre authority="AAT">Books</genre>
<originInfo>
<publisher>O'Reilly</publisher>
<dateIssued>2001</dateIssued>
<edition>First edition</edition>
</originInfo>
<language>
<languageTerm type="code" authority="iso639-2b">eng</languageTerm>
</language>
<physicalDescription>
<form authority="marcform">print</form>
<extent>xii, 354p.</extent>
</physicalDescription>
<subject authority="lcsh">
<topic>XML (Document Markup Language)</topic>
</subject>
<identifier type="ISBN">9780596000462</identifier>
<identifier type="ISBN">0596000464</identifier>
<identifier type="callNumber">QA76.76.H94 R394 2001</identifier>
</mods>`
XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<title>MODS Record</title>
</head>
<body>
<h2 align="center">MODS Record</h2>
<table align="center" border="1">
<tr bgcolor="#D6CCA9">
<th>Author</th>
<th>Title</th>
<th>Publisher</th>
<th>Edition</th>
<th>Publication Date</th>
</tr>
<tr>
<td><xsl:value-of select="given" /><xsl:value-of select="family" /></td>
<td><xsl:value-of select="title" /></td>
<td><xsl:value-of select="publisher" /></td>
<td><xsl:value-of select="edition" /></td>
<td><xsl:value-of select="dateIssued" /></td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>