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=14099>. 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=14099 Problem with pattern matching when using DOM2DTM2 exp. code Summary: Problem with pattern matching when using DOM2DTM2 exp. code Product: XalanJ2 Version: CurrentCVS Platform: Other OS/Version: Other Status: NEW Severity: Blocker Priority: Other Component: org.apache.xml.dtm AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The following stylesheet: <xsl:template match="/"> <a><xsl:apply-templates select="article"/></a> </xsl:template> <xsl:template match="article"> <html></html> </xsl:template> <xsl:template match="text()"> <t/> </xsl:template> produces the following result when DOM2DTM2 flag is turned on: <a><t/></a> the source document is: <article> </article> The problem is the <xsl:template match="article"> template isn't instanciated. I tried to replace the apply-templates instruction by for-each, the result is good (no text node are selected). I know that the problem is the pattern matching but I don't know why.
