PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2937 *** shadow/2937 Tue Jul 31 14:39:48 2001 --- shadow/2937.tmp.13642 Tue Jul 31 14:39:48 2001 *************** *** 0 **** --- 1,66 ---- + +============================================================================+ + | xsltc fails conf test impincl15 not honoring mode in imported xsl | + +----------------------------------------------------------------------------+ + | Bug #: 2937 Product: XalanJ2 | + | Status: NEW Version: 2.0.0 | + | Resolution: Platform: Sun | + | Severity: Normal OS/Version: Solaris | + | Priority: Other Component: org.apache.xalan.xsltc | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + The obtained output differs from the expected output only by the missing + <pre></pre> tags. That is because the template in the imported xsl that is in + the same mode as the calling template (mode="yes") was not used. + + <?xml version="1.0"?> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <!-- FileName: impincl15 --> + <!-- Document: http://www.w3.org/TR/xslt --> + <!-- DocVersion: 19991116 --> + <!-- Section: 5.6 Overriding Template Rules --> + <!-- Creator: David Marston --> + <!-- Purpose: Test that apply-imports stays in same mode as what called it. + --> + + <xsl:import href="s.xsl"/> + <xsl:template match="doc"> + <out> + <xsl:apply-templates mode="yes"/> + </out> + </xsl:template> + <xsl:template match="tag" mode="yes"> + <div style="border: solid green"> + <xsl:apply-imports/> + </div> + </xsl:template> + + <xsl:template match="tag"> + <div style="border: solid red"> + <xsl:apply-imports/> + </div> + </xsl:template> + </xsl:stylesheet> + + Imported XSL (s.xsl) + ==================== + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <xsl:template match="tag" mode="yes"> <--THIS TEMPLATE SHOULD HAVE BEEN USED + <pre><xsl:apply-templates/></pre> + </xsl:template> + <xsl:template match="tag" mode="no"> + <bad><xsl:apply-templates/></bad> + </xsl:template> + + <xsl:template match="tag"> + <unmoded><xsl:apply-templates/></unmoded> + </xsl:template> + + </xsl:stylesheet> \ No newline at end of file
