|
Subject: [xsl] Namespace problem From: Lucas Miguez <lucas.miguez@xxxxxxxxx> Date: Mon, 7 Jun 2010 11:32:02 +0200 |
Hi,
I have a problem with the namespace of an XML file. The header of that
file is that:
<?xml version="1.0" encoding="windows-1252"?>
<AuditFile xmlns="urn:OECD:StandardAuditFile-Tax:PT_1.00_01">
<Header>
<AuditFileVersion>1.00_01</AuditFileVersion>
<CompanyID/>
....
The header of the XSL file is that:
<?xml version="1.0" encoding="windows-1252"?><!-- DWXMLSource="Fact
Portugal/SAFT-PT/Exemplo SAFT da Facturacao.XML" -->
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns="urn:OECD:StandardAuditFile-Tax:PT_1.00_01" xmlns:fo="
http://www.w3.org/1999/XSL/Format">
....
Well, the XSL file is not showing the values of the XML file. But if I
eliminate the namespace in the XML file
(xmlns="urn:OECD:StandardAuditFile-Tax:PT_1.00_01") it works.
What is the correct way to declare that namespace in the XSL file?
Thanks
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Re: How to split text ele, Liam R E Quin | Thread | Re: [xsl] Namespace problem, Martin Honnen |
| [xsl] Re: How to split text element, Mark Howe | Date | Re: [xsl] Namespace problem, Martin Honnen |
| Month |