|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] namespaces problem
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
I know that is a namespaces problem but I need the solution
Thanks in advance
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








