Subject: [xsl] namespaces problem From: "Marco Contardi" <Marco.Contardi@xxxxxxx> Date: Thu, 31 Jul 2003 18:25:01 +0200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xslt code beautifier?, Paul Brown | Thread | Re: [xsl] namespaces problem, G. Ken Holman |
RE: [xsl] How to speed up parsing ?, Tengshe, Ashish | Date | AW: RE: RE: [xsl] xsl:output method, Markus Abt |
Month |