Bugs item #901240, was opened at 2004-02-20 13:05 Message generated for change (Comment added) made by mdiggory You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=901240&group_id=16035
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mark Diggory (mdiggory) Assigned to: Maarten Coene (maartenc) Summary: Cannot choose mode for Stylesheet.applyTemplates Initial Comment: One cannot set the mode for which one is applyingTemplates in the Stylesheet object, this makes Stylesheet incompatable with xslt like behavior for which "mode" is actually used for. <xsl:applyTemplates select="foo" mode="bar"/> http://www.dom4j.org/xref/org/dom4j/rule/Stylesheet.html#67 An example of where this would be applied is in Jelly's jsl:applyTemplates tag http://jakarta.apache.org/commons/jelly/libs/jsl/xref/org/apache/commons/jelly/tags/jsl/ApplyTemplatesTag.html#107 Unfortunately jsl:applyTemplates mode attribute isn't implemented because of this lack of functionality. thanks, Mark Diggory ---------------------------------------------------------------------- >Comment By: Mark Diggory (mdiggory) Date: 2004-10-11 23:19 Message: Logged In: YES user_id=208348 Maarten, I'm no longer involved with the project that was using dom4j. But, I believe this issue was corrected with the changes you made. Could you close this issue so I can get it off my personal sf page? thanks, Mark ---------------------------------------------------------------------- Comment By: Maarten Coene (maartenc) Date: 2004-02-29 07:40 Message: Logged In: YES user_id=178745 I've added these extra methods to org.dom4j.rule.Stylesheet: run(Object input, String mode); run(Node node, String mode); run(List list, String mode); applyTemplates(Object input, org.dom4j.XPath xpath,String mode); applyTemplates(Object input, org.jaxen.XPath xpath, String mode); applyTemplates(Object input, String mode); I hope this solves your problem. Could you please verify if it's working correctly, cause I'm not very familiar with both XSLT and the Stylesheet implementation of DOM4J. If it's not working as expected, could you also provide some unit tests which illustrates the problem ? I'm waiting to close this issue until you confirm it's fixed. thanks, Maarten ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=116035&aid=901240&group_id=16035 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev