You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/01/12 23:47:24 UTC
DO NOT REPLY [Bug 26075] New: -
non-prefixed attributes should not be in default namespace
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26075>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26075
non-prefixed attributes should not be in default namespace
Summary: non-prefixed attributes should not be in default
namespace
Product: XalanJ2
Version: 2.5
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Xalan
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: joerg.heinicke@gmx.de
Some days ago there was a problem on Cocoon's users list:
http://marc.theaimsgroup.com/?t=107329750000006&r=1&w=2.
I searched for the reason and found out that it must be problem with default
namespace handling for attributes:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107360969710673&w=2.
(I CCed also xalan-dev, but it seems this mail didn't make it through.)
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 in scope is declared as xmlns="http://www.sevencs.com".
In another stylesheet same default namespace is declared and
additionally this namespace uri is also bound to prefix s.
Following template matches, but the value-of does not return any value:
<xsl:template match="s:file">
<xsl:text>following file was added:</xsl:text>
<xsl:value-of select="./@path"/>
</xsl:template>
Only if I change it to @s:path it works. Is this correct???
J.Pietschmann confirmed it is a bug:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107393522828822&w=2.
I tested it with recent Cocoon and the Xalan 2.5.2 we have currently in use.