Subject: Re: [xsl] namespaces problem From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 31 Jul 2003 13:02:02 -0400 |
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="/"> </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
<xsl:apply-templates select="Practica"/> ... <xsl:template match="Practica">...
xmlns:ppztl="http://www.saga.it/egov/esicra/importazione/xml/esicra_pra" ... <xsl:apply-templates select="ppztl:Practica"/> ... <xsl:template match="ppztl:Practica">...
-- Upcoming hands-on courses: in-house corporate training available; North America public: XSLT/XPath Aug 12, 2003
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-11-X Practical Formatting Using XSL-FO Member of the XML Guild of Practitioners: http://XMLGuild.info Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] namespaces problem, Marco Contardi | Thread | AW: RE: RE: [xsl] xsl:output method, Markus Abt |
Re: [xsl] Deleting a node depending, J.Pietschmann | Date | RE: [xsl] '<' and '>' in the value , cknell |
Month |