Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Basic question (I think!) Basic question (I think!)To: NULL Date: 10/1/2004 3:11:00 AM Hi
Sorry for the basic question. I'm trying to work out here what I'm
doing wrong. If I open the XML file (below) with the stylesheet
(below) all I can see is the header (TestID) but no value (26).
Where am I going wrong? I tried changing the select value of
"<xsl:for-each select="NewDataSet/Table">", but could not get
anywhere.
Can someone please help? I'm sure it's something dumb (code below).
Many thanks!!
Alex!
XSL style sheet------------>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<HTML>
<HEAD>
<STYLE>
.HDR { background-color:bisque;font-weight:bold }
</STYLE>
</HEAD>
<BODY>
<TABLE>
<COLGROUP WIDTH="100" ALIGN="LEFT"></COLGROUP>
<TD CLASS="HDR">TestID</TD>
<xsl:for-each select="NewDataSet/Table">
<TR>
<TD><xsl:value-of select="TestID"/></TD>
</TR>
</xsl:for-each>
</TABLE>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
XML File---------->
<?xml version='1.0'?><?xml-stylesheet type='text/xsl'
href='Test.xsl'?>
<DSTest xmlns="http://www.tempuri.org/Test.xsd">
<Test>
<TestID>26</TestID>
</Test>
</DSTest>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
