[xsl] Namespace problem

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   "&#160;">
    <!ENTITY copy   "&#169;">
    <!ENTITY reg    "&#174;">
    <!ENTITY trade  "&#8482;">
    <!ENTITY mdash  "&#8212;">
    <!ENTITY ldquo  "&#8220;">
    <!ENTITY rdquo  "&#8221;">
    <!ENTITY pound  "&#163;">
    <!ENTITY yen    "&#165;">
    <!ENTITY euro   "&#8364;">
]>
<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