You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Tobias Kiesling <ki...@informatik.uni-muenchen.de> on 2000/12/03 18:38:17 UTC

xalan-bug

Hi all,

I've got a bug to report to you. Actually there are two
inconsistencies in xalan that cause the bug.

The first is the handling of the xsl:namespace-alias instruction. The
handling is as follows:
 - the old namespace-attribute is removed
 - the new attribute is appended to the ->Document-Element<-

This should be no problem, but the second thing is, that an embedded
stylesheet is only processed correctly, if the xsl:stylesheet-element
itself contains an xmlns-attribute.

I use xalan in the cocoon-framework and in one step of the
production-process I use a stylesheet to create a stylesheet, that
further transforms the supplied document in the next step.
In cocoon this only works by creating a document with an embedded
stylesheet and to create that stylesheet I need the
xsl:namespace-alias instruction.

The first step works correctly, but in the second step xalan
complains, because there is no namespace-declaration on the
stylesheet-element and further ignores the embedded stylesheet.

I tried to find a workaround, but was not successful, as the first
transformation removes all namespace-declarations with the aliased
prefix, so that it's not possible to include the declaration with the
xsl:stylesheet-element itself.

Thanks for your help,
  Tobias