[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

namespaces problem

Subject: namespaces problem
From: "Marco Contardi" <Marco.Contardi@xxxxxxx>
Date: Thu, 31 Jul 2003 18:25:01 +0200
marco contardi
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.