The mode attribute for the xtags:template and xtags:applyTemplates elements does not work at all. It causes the template that has the mode to never match its elements. If you remove the modes, then the same templates match as expected. The following snippet does not work: <xtags:stylesheet> <xtags:template match="/"> <p>matched root</p> <xtags:applyTemplates mode="foo" /> </xtags:template> <xtags:template mode="foo" match="item"> <p>output for mode foo</p> </xtags:template> </xtags:stylesheet> If you remove the modes, it works. This is important functionality, because without this, you cannot translate an element two ways depending on your needs. (Like TOC vs. plain as shown in most XSL examples.) This mail from the mailing lists also describes the problem: http://www.mail-archive.com/taglibs-user@jakarta.apache.org/msg01485.html Thanks very much, Dawn Roth 303-223-7885
I have some bugfixes for the xtags-taglib. Now the attribute 'mode' works fine. Because of no CVS, I attach the complete files and not only patches.
Created attachment 9934 [details] ApplyTemplatesTag.java - add stylesheet.setModeName(mode)
Created attachment 9935 [details] TemplateExecution.java - add property mode
Created attachment 9936 [details] BodyAction.java - add property mode
Created attachment 9938 [details] StylesheetTag.java - logic change in getTemplateExecution()
Resolving. Taglib has been retired.