ask for writing ext 2003-01-19 - By Simon Kitching
Hi Andrey,
You might find the following email relevant:
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=xalan-j-users@(protected) .org&msgId=364499
It shows how to implement a method which evaluates an arbitrary xpath expression, like the "$var" value you get from the select attribute in your custom tag.
Regards,
Simon
On Sat, 2003-01-18 at 23:57, Andrey Solonchuk wrote: > Hello xalan-j-users, > > hi > > I try to write my extention function > <iol:data select="$var"> > > in my java implementation I could get only String "$var" but not > a value of varioable var > how I could write my function to get this > > now I have to write this > > public void param(org.apache.xalan.extensions.XSLProcessorContext context, > org.apache.xalan.templates.ElemExtensionCall elem) > String value = elem.getAttribute("select"); > if (value==null) value = > context.getTransformer().transformToString(elem); > and <iol:data"><xsl:value-of select="$var/></iol:data> > > help please > -- > Best regards, > Andrey mailto:solo@(protected) > > >
|
|