http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2695 *** shadow/2695 Thu Jul 19 12:01:06 2001 --- shadow/2695.tmp.9446 Thu Jul 19 12:01:06 2001 *************** *** 0 **** --- 1,172 ---- + +============================================================================+ + | xsltc fails conf tests impincl06, and impinlc07 | + +----------------------------------------------------------------------------+ + | Bug #: 2695 Product: XalanJ2 | + | Status: NEW Version: CurrentCVS | + | Resolution: Platform: All | + | Severity: Normal OS/Version: All | + | Priority: Other Component: org.apache.xalan.xsltc | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Not sure if the the root cause is the same, but these two tests are very similar + . They seem to test template priority when the main stylesheet imports or + includes other stylesheets which duplicate some templates. + + Obtained Output for impincl06 + ============================= + <?xml version="1.0" encoding="utf-8" ?> + <out> + + C-title:,Testing-xsl:include + + B-author: + Joe Jones, + + D-overview: + testing-include + + C-chapters: + + + E-chapter: + 1.know xsl + + E-chapter: + 2.love xsl + + </out> + + Expected Output for impinl06 + ============================ + <?xml version="1.0" encoding="UTF-8"?> + <out> + + Includ01-title: + Testing-xsl:include + + B-author: + Joe Jones, + + D-overview: + testing-include + + C-chapters: + + 1 . + know xsl + 2 . + love xsl + + </out> + + XSL for impincl06 + ================= + <?xml version="1.0"?> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <!-- FileName: IMPINCL06 --> + <!-- Document: http://www.w3.org/TR/xslt --> + <!-- DocVersion: 19990922 --> + <!-- Section: 2.6 --> + <!-- Purpose: Two includes, each of which has an import. --> + + <xsl:include href="b.xsl"/> + <xsl:include href="c.xsl"/> + + <xsl:template match="/*"> + <out> + <xsl:apply-templates/> + </out> + </xsl:template> + + <xsl:template match="title"> + Includ01-title: + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="chapter"> + <xsl:value-of select="@num"/> . + <xsl:value-of select="."/> + </xsl:template> + + </xsl:stylesheet> + + XML for impincl06 + ================= + <?xml version="1.0"?> + <doc> + <title>Testing-xsl:include</title> + <author>Joe Jones</author> + <overview>testing-include</overview> + <chapters> + <chapter num="1">know xsl</chapter> + <chapter num="2">love xsl</chapter> + </chapters> + </doc> + + b.xsl + ===== + <?xml version="1.0"?> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + <xsl:import href="d.xsl"/> + <xsl:template match="author"> + B-author: + <xsl:apply-imports/><xsl:text>,</xsl:text> + </xsl:template> + + </xsl:stylesheet> + + c.xsl + ===== + <?xml version="1.0"?> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + <xsl:import href="e.xsl"/> + + <xsl:template match="title"> + C-title:<xsl:text>,</xsl:text> + <xsl:apply-imports/> + </xsl:template> + + <xsl:template match="chapters"> + C-chapters: + <xsl:apply-imports/> + </xsl:template> + </xsl:stylesheet> + + d.xsl + ===== + <?xml version="1.0"?> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <xsl:template match="title"> + D-title: + </xsl:template> + + <xsl:template match="overview"> + D-overview: + <xsl:value-of select="."/> + </xsl:template> + + </xsl:stylesheet> + e.xsl + ===== + <?xml version="1.0"?> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <xsl:template match="title"> + E-title:<xsl:text>,</xsl:text> + </xsl:template> + + <xsl:template match="chapter"> + E-chapter: + <xsl:value-of select="@num"/><xsl:text>.</xsl:text> + <xsl:value-of select="."/> + </xsl:template> + + </xsl:stylesheet>
