You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2002/09/13 17:06:13 UTC
DO NOT REPLY [Bug 12618] New: -
Mode attribute on xtags:template & xtags:applyTemplates does not work
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=12618>.
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=12618
Mode attribute on xtags:template & xtags:applyTemplates does not work
Summary: Mode attribute on xtags:template & xtags:applyTemplates
does not work
Product: Taglibs
Version: 1.0
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Major
Priority: Other
Component: XTags Taglib
AssignedTo: taglibs-dev@jakarta.apache.org
ReportedBy: dawn.roth@sun.com
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
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>