W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2003

processing with xsl

From: Marco Contardi <Marco.Contardi@saga.it>
Date: Thu, 31 Jul 2003 10:44:42 +0200
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <OFF5B70B5E.6A8ED8B3-ONC1256D74.002D582A@LocalDomain>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:39 GMT