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

mode not working with apply-templates

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Major                       |Normal
           Priority|Other                       |High



------- Additional Comments From [EMAIL PROTECTED]  2002-01-29 22:13 -------
I verified this problem by simply running the cmdline driver on Solaris. 
But note there is a mistake in the sample xsl file. The following line has an
extra ")" at the end.

<xsl:value-of select="count(Tv/Show[count(Actor) > 0]))"/>

Once I fixed that, I ran the test and got the following output for 
Xalan versus XSLTC which shows that XSLTC is failing to call the templates 
matching on "Show" at all, even though they exist with the appropriate mode.

I looked at the mode tests and mode08 is similar, but passes. The 
difference is that modes08 has a simple select="a" in the apply-templates
statement, whereas the test described in this bug has a more complex 
select="Tv/Show[count(Actor) = 0]" in the apply-templates statement.

But that was a red herring. The real problem turned out to be setting 
the output type to XHTML. When I changed the output type to HTML and 
removed the xmlns="http://www.w3.org/1999/xhtml"; attribute from the <html>
literal results element, XSLTC gave the correct output.

Reply via email to