processing with xsl

Hello,

I have this xml (sample XMLSpy generate from xsd)

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="out_struttura_pra.xsl"?>
<PraPermessoZTL
xmlns="http://www.saga.it/egov/esicra/importazione/xml/esicra_pra"
xmlns:esicra_import="
http://www.saga.it/egov/esicra/importazione/xml/esicra_import"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.saga.it/egov/esicra/importazione/xml/esicra_pra
PraPermessoZTL.xsd">
      <Pratica>
            <Id>2147483647</Id>
            <Oggetto>HELLO</Oggetto>
      </Pratica>
</PraPermessoZTL>

I process the xml with the following xsl

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<HTML>
<BODY>
<TABLE border="1">
<xsl:for-each select="PraPermessoZTL/Pratica/*">
<TR>
<TD>
<B><xsl:value-of select="name()"/></B>
</TD>
<TD>
<xsl:value-of select="current()"/></TD>
</TR>
</xsl:for-each >
</TABLE>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>

The problem is that it don't work,
It work only when I delete the row "xmlns="http://....." from xml
Any ideas please?


Regards
Marc

Received on Thursday, 31 July 2003 05:44:48 UTC