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=9176>.
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=9176

xsltc fails impincl25 and impincl26 on apply-imports

           Summary: xsltc fails impincl25 and impincl26 on apply-imports
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Test impincl25 has the following structure:

  main xsl ----imports--> fragments/imp25b.xsl --imports--> imp21c.xsl

This template in the main stylesheet

  <xsl:template match="/doc">
    <out>
      <xsl:text>Match on /doc in top xsl</xsl:text>
      <xsl:apply-imports/>
    </out>
  </xsl:template>

applied to the xml file

  <doc>
    <foo><bar/></foo>
  </doc>

for the "foo" node should invoke the imported template in 
imp21c.xsl

  <xsl:template match="foo">
    <C>
      <xsl:value-of select="name(.)"/>
      <xsl:apply-templates select="bar"/>
    </C>
  </xsl:template>

and the the apply-templates on 'bar' should invoke the matching
template back up in the main stylesheet

  <xsl:template match="bar">
    <xsl:text> - match on bar in top xsl</xsl:text>
  </xsl:template>

But the following test run with the ouput from Xalan versus XSLTC
shows the matching template for foo in the imported imp21c.xsl 
does not get invoked correctly by XSLTC.  

Running xalan on impincl25
--------------------------
<?xml version="1.0" encoding="UTF-8"?>
<out>Match on /doc in top xsl
  <C>foo - match on bar in top xsl</C>
</out>

Running XSLTC with Xerces Parser on impincl25
---------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<out>Match on /doc in top xsl</out>

There may be a problem finding imp21c.xsl.
impincl25.xsl has href="fragments/imp21b.xsl"  
and imp21b.xsl has href="imp21c.xsl". So the question 
is whether xsltc is looking for imp21c.xsl in 
the "fragments" directory or in the same directory as 
the main stylesheet.

Conformance test impincl26 is very similar and may 
be failing because of the same problem.

Reply via email to