xsl-list
[Top] [All Lists]

Re: undeclared namespace error

2005-03-22 13:13:11
Hi Dan,

Try xmlns instead of xslns. :)

-Daniel


On Tue, 22 Mar 2005 14:52:34 -0500, Dan Chandler
<daniel(_dot_)chandler(_at_)gmail(_dot_)com> wrote:
Hi all,

I am working on a ,net application that displays an XML file.  I have
an XSLT file that is supposed to format the XML file into a table.
The following is the xslt file:

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" 
xslns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:template match="NewDataSet">
       <xsl:for-each select="LogEntry">
               <TR>
                       <TD><xsl:value-of select="client"></xsl:value-of></TD>
                       <TD><xsl:value-of select="process"></xsl:value-of></TD>
                       <TD><xsl:value-of select="TDS"></xsl:value-of></TD>
                       <TD><xsl:value-of
select="ProcessType"></xsl:value-of></TD>
                       <TD><xsl:value-of 
select="FileSize"></xsl:value-of></TD>
                       <TD><xsl:value-of select="Success"></xsl:value-of></TD>
                       <TD><xsl:value-of select="Message"></xsl:value-of></TD>
               </TR>
       </xsl:for-each>
</xsl:template>
</stylesheet>

I am betting I have several problems in there, but the one I am stuck
on right now is when i try to run the application I get the error:

"'xsl' is an undeclared namespace. Line 2, position 2."

I've looked online and it seems like this error has something to do
with the stylesheet declaration line, but I can't quite figure out
what I am doing wrong.  Anyone help is appreciated.  Thanx.

Dan

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>