Attribute is not a node
-----------------------

         Key: XALANJ-2207
         URL: http://issues.apache.org/jira/browse/XALANJ-2207
     Project: XalanJ2
        Type: Bug
  Components: Xalan  
    Versions: 2.7    
 Environment: Linux amd64, java 1.5.0-05 64bit server mode
    Reporter: Martin Vysny


Let the context attribute be foo="bar". I have the following template:
<xsl:template match="*" mode="baz" priority="1">
  something2
</xsl:template>
<xsl:template match="node()" mode="baz" priority="0">
  something
</xsl:template>

When the context node is attribute and i call <xsl:apply-templates select="." 
mode="baz"/> it outputs text 'bar'. When I modify the template to

<xsl:template match="node() | @*" mode="baz" priority="0">
  something
</xsl:template>

It outputs 'something' as it should. I think there are two errors:
- attribute is not a node,
- why it outputs the attribute value when the mode is not matched?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to