cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <>
Subject Re: XPath problem with default namespace
Date Mon, 12 Jan 2004 19:19:56 GMT
Joerg Heinicke wrote:
> To summarize it shortly:
> An element is created using following template
>   <xsl:template match="dir:file">
>     <xsl:element name="file">
>       <xsl:attribute name="path">
>         <xsl:value-of select="concat($path,./@name)"/>
>       </xsl:attribute>
>     </xsl:element>
>   </xsl:template>
> and default namespace is declared: xmlns="".

If the attribute is put into the default (prefixless) namespace in
scope, it's definitely a bug. The XSLT spec states:
  If the namespace attribute is not present, then the QName is
  expanded into an expanded-name using the namespace declarations
  in effect for the xsl:attribute element, *not* including any
  default namespace declaration.
while for elements the default namespace is taken into account.

Will you rise a bug for the XSLT processor (Xalan, I supppose)?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message