This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
No data appearing
- From: melanie dot j dot broadhead at accenture dot com
- To: XSL-List at lists dot mulberrytech dot com
- Date: Fri, 14 Dec 2001 08:40:13 -0600
- Subject: [xsl] No data appearing
- Reply-to: xsl-list at lists dot mulberrytech dot com
I am only getting the header information to appear on my site. Contract Id
is displayed, but not the value for it. Any suggestions on how to get
"Test Contract" to also appear? It works locally in XML-Spy. Any help
would be great, thanks! Melanie
jsp page:
<%@ page language="java"
errorPage="errorPage.jsp"
%>
<?xml version="1.0"?>
<?xml-stylesheet href="ContractDetails.xsl" type="text/xsl"?>
<ContractData>
<Contract ContractId="Test Contract">
</Contract>
</ContractData>
XSL sheet:
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<style type="text/css">
<xsl:comment>
span.literal { font-family: Courier, monospace; }
</xsl:comment>
</style>
</head>
<body>
<br />
<xsl:for-each select="/ContractData/Contract">
<xsl:apply-templates select="."/>
</xsl:for-each>
</body>
</html>
</xsl:template>
<!-- BEGIN CONTRACT ID TABLE -->
<xsl:template match="/ContractData/Contract">
<table>
<tr>
<td><b>Contract ID</b></td>
<td>
<xsl:value-of select="@ContractId"/>
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete the
original. Any other use of the email by you is prohibited.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list