Alex Nikulshin writes:
>The Xalan mishandles the <xsl:attribute name="xml:lang"> tag. The error
>message says:
>... Could not resolve namespace prefix: xml. ...
>I am a little surprised - since this is the reserved namespace and it
>should be ok without any declaration. Or am I missing something?

This has been reported in Bugzilla already (#1549). I haven't examined
the situation in depth, but my quick review indicates that
<xsl:attribute name="xml:lang">
is allowed and that we could go ahead and assume that the "xml" prefix
has its normal value, because you're not allowed to redefine it. If
other processors put it out without a declaration for the prefix, then
we have the competitive pressure even if there isn't a requirement in
the specs. However, I think that the xsl:output method could be
significant here, because the "xml" prefix is only predefined in XML
documents, not HTML.

The workaround is to have an explicit declaration of the prefix or
add namespace="http://www.w3.org/XML/1998/namespace"; to your
xsl:attribute instruction, using the fixed URI designated in Chapter
4 of the XML Namespaces spec.
.................David Marston

Reply via email to