This is my day for lots of questions. 

I am attempting to compile some style sheets, and I am having a problem with
namespaces.

If I have a namespace declared in addition to the XSL namespace, 

like 

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/xsl/Transform";
xmlns:FormatUtil="FormatUtil">

the compiler rejects the style sheet with the following message:

  The input document is not a stylesheet (the XSL namespace is not declared
in the root element).


If I remove the xmlns:FormatUtil="FormatUtil" the compiled accepts the style
sheet (and fails because things reference FormatUtil). 

I looked at the code in package org.apache.xalan.xsltc.compiler.Parser and I
didn't see anything obvious. The error is emitted in getStyleSheet. I also
couldn't find anything about this in the docs. 

Has anyone else seen anything like this?

        easy,
        douglas d

Reply via email to