|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] No data appearing
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








