Argh. Just spent 8 hours tracking down why the "name" attribute isn't working
in the "rel2"-tagged xsl taglib. You can do interesting non-deterministic
things with typecasted nulls ;)
Anyway, patch is attached.
Btw, I have a working build.xml and a couple of samples here, if anyone wants.
--Jeff
On Mon, Apr 30, 2001 at 11:21:02AM -0700, Morgan Delagrange wrote:
> Hi all,
>
> I checked in a very preliminary version of some new XSL transform tags in
> the repository on the "rel2" branch. The build script doesn't really work
> yet; you'll need jaxp to compile it.
>
> It has new syntax compared to the current XSL tag library (see the example
> JSP for now, until the docs are ready.) It is based
> on TraX, so it should be pluggable with any trax parser. Right now it
> does simple transformations based on URIs, Readers, InputStreams, Strings
> and/or tag bodies.
>
> However, since it's based on TraX, it should be possible to also work with
> DOMs and possibly SAX events. Also, we can take advantage of other nice
> TraX features, like configurable output properties.
>
> I ripped out some features, like stylesheet caching, in this version to
> make the TraX conversion simpler. In a follow-up email, I'm going to
> nominate Rod Waldhoff as a committer, since he actually designed this tag
> library and I mostly just ported it to TraX.
>
> - Morgan
Index: xsl/src/org/apache/taglibs/xsl/BaseSourceTag.java
===================================================================
RCS file:
/home/cvspublic/jakarta-taglibs/xsl/src/org/apache/taglibs/xsl/Attic/BaseSourceTag.java,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 BaseSourceTag.java
--- xsl/src/org/apache/taglibs/xsl/BaseSourceTag.java 2001/04/30 18:06:05 1.1.2.1
+++ xsl/src/org/apache/taglibs/xsl/BaseSourceTag.java 2001/05/10 06:14:51
@@ -65,9 +65,9 @@
Object o = null;
if(-1 == _scope) {
- pageContext.findAttribute(_name);
+ o = pageContext.findAttribute(_name);
} else {
- pageContext.getAttribute(_name,_scope);
+ o = pageContext.getAttribute(_name,_scope);
}
if (o instanceof Reader) {