Altova Mailing List Archives

Re: Cannot View Data using XSL .. newbie.

From: "Joe Fawcett" <joefawcett@----------.------>
Date: 7/30/2005 8:12:00 AM
<christina.biadoma@g...> wrote in message 
> Hi,
> I cannot view the XML data using an XSL file. I have created a
> validated XML and XSD file using .NET.  I've uploaded my files to my
> URI but cannot seem display the data.  Any Help would be greatly
> appreciated!  Thanks, Christina.

You stylesheet has "stylesheet" rathet than "xsl:stylesheet". With these added 
it works for me.


Joe (MVP - XML)

> -------------Here is my code for the XSL file--------------
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <stylesheet version="1.0"
> xmlns:xsl="" >
> <xsl:template match="/">
> <html>
> <body>
> <h2>Customers</h2>
> <table border="1" bgColor="ff0000">
> <tr>
> <xsl:for-each select="CUSTOMERS/CUSTOMER">
> <td><xsl:value-of select="./SSN"/></td>
> </xsl:for-each>
> </tr>
> </table>
> </body>
> </html>
> </xsl:template>
> </stylesheet>
> ------------Here is my info for the XML file------------
> <?xml version="1.0" encoding="utf-8" ?>
> <?xml-stylesheet type="text/xsl" href="CUSTOMERS.xsl"?>
> <SSN>622543790</SSN>
> <NAME>Philip</NAME>
> <PHONE_NUM>8514750</PHONE_NUM>
> <CITY>Seattle</CITY>
> <STATE>98104</STATE>
> <ZIP>98104</ZIP>


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.