Altova Mailing List Archives
>microsoft.public.xsl Archive Home
>Recent entries
>Thread Prev - Cannot View Data using XSL .. newbie.
>Thread Next - Re: Cannot View Data using XSL .. newbie.
Re: Cannot View Data using XSL .. newbie.
To: NULL
Date: 7/30/2005 8:12:00 AM
<christina.biadoma@g...> wrote in message news:1122702699.040959.23630@g...... > 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) https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5 > -------------Here is my code for the XSL file-------------- > > <?xml version="1.0" encoding="ISO-8859-1" ?> > <stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > <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"?> > <CUSTOMERS> > <CUSTOMER> > <SSN>622543790</SSN> > <NAME>Philip</NAME> > <PHONE_INFO> > <AREA_CODE>510</AREA_CODE> > <PHONE_NUM>8514750</PHONE_NUM> > </PHONE_INFO> > <ADDRESS> > <STREET_NUM>494</STREET_NUM> > <STREET_NAME>California</STREET_NAME> > <CITY>Seattle</CITY> > <STATE>98104</STATE> > <ZIP>98104</ZIP> > </ADDRESS> > <SHOPPING_ID>2 10</SHOPPING_ID> > <CC_TYPES>MasterCard,VISA</CC_TYPES> > </CUSTOMER> > </CUSTOMERS> >
Disclaimer
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 www.altova.com/list/index.html. 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.

