Subject: [xsl] No data appearing From: melanie.j.broadhead@xxxxxxxxxxxxx Date: Fri, 14 Dec 2001 08:40:13 -0600 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] sorting related issue, Michael Kay | Thread | Re: [xsl] No data appearing, Jeni Tennison |
[xsl] sorting related issue, Sanjay Pandey/Towers | Date | [xsl] translets vs. templates, James Parsons |
Month |