<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output version="4.0" method="html" indent="no" encoding="UTF-8"/>
	<xsl:template match="/">
		<html>
			<head>
				<title/>
			</head>
			<body>
				<xsl:for-each select="JSON">
					<span style="font-family:@Arial Unicode MS; font-size:large; ">
						<xsl:text>Library</xsl:text>
					</span>
					<table style="border-collapse:collapse; empty-cells:show; table-layout:fixed; " border="1" width="500">
						<thead>
							<tr style="background-color:lightgrey">
								<th>
									<span>
										<xsl:text>Title</xsl:text>
									</span>
								</th>
								<th>
									<span>
										<xsl:text>Authors</xsl:text>
									</span>
								</th>
								<th>
									<span>
										<xsl:text>Publisher</xsl:text>
									</span>
								</th>
							</tr>
						</thead>
						<tbody>
							<xsl:for-each select="bib">
								<xsl:for-each select="book">
									<tr style="background-color:lightsteelblue">
										<td valign="top" style="empty-cells:show;">
											<xsl:for-each select="title">
												<span>
													<xsl:value-of select="string(.)"/>
												</span>
											</xsl:for-each>
										</td>
										<td valign="top" style="empty-cells:show;">
											<xsl:for-each select="author">
												<span>
													<xsl:value-of select="string(.)"/>,
												</span>
											</xsl:for-each>
										</td>
										<td valign="top" style="empty-cells:show;" >
											<xsl:for-each select="publisher">
												<xsl:value-of select="string(.)"/>,
											</xsl:for-each>
										</td>
									</tr>
								</xsl:for-each>
							</xsl:for-each>
						</tbody>
					</table>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
