xmlns:xsl namespace - "xsl:stylesheet" must be dec
Posted: Tue Jul 29, 2003 11:28 pm
Hi,
I have been evaluating oXygen for our department at the University of Alberta and I have been running into a minor problem. We need to provide a build for each Section of our document (for our staffs) and thus I have been using Ant to do that. I am using the "External Tools" to call Ant. However, I get the following error:
[code]build-10-Inquiries:
[exec] [Error] myxsl.xsl:5:81: Element type "xsl:stylesheet" must be declared.[/code]
... (more error of same type)
I have tried Ant on a DOS command prompt with no problem. The source of the problem (what I believe is the cause) is in my xsl file and is the DOCTYPE declaration:
[code]<?xml version="1.0" ?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY tab "	" >
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">...[/code]
However, I don't see the problem! If I remove this DOCTYPE declaration (and of course any reference to 'tab') it works.
Why does oXygen not able to resolve the xsl namespace?
Is there a work arround? (keeping in mind that I need to define ENTITY)
Any help will be very much appreciated
Thank you,
Jocelyn
I have been evaluating oXygen for our department at the University of Alberta and I have been running into a minor problem. We need to provide a build for each Section of our document (for our staffs) and thus I have been using Ant to do that. I am using the "External Tools" to call Ant. However, I get the following error:
[code]build-10-Inquiries:
[exec] [Error] myxsl.xsl:5:81: Element type "xsl:stylesheet" must be declared.[/code]
... (more error of same type)
I have tried Ant on a DOS command prompt with no problem. The source of the problem (what I believe is the cause) is in my xsl file and is the DOCTYPE declaration:
[code]<?xml version="1.0" ?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY tab "	" >
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">...[/code]
However, I don't see the problem! If I remove this DOCTYPE declaration (and of course any reference to 'tab') it works.
Why does oXygen not able to resolve the xsl namespace?
Is there a work arround? (keeping in mind that I need to define ENTITY)
Any help will be very much appreciated
Thank you,
Jocelyn