[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

No data appearing

Subject: No data appearing
From: melanie.j.broadhead@xxxxxxxxxxxxx
Date: Fri, 14 Dec 2001 08:40:13 -0600
melanie broadhead
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.