This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Passing Document/NodeList to xsl as parameter


Thanks Mike,

I've tried sending it just as a string and it throws the error:

java.xml.transform.TransformerException: Unknown Error in XPath

on execution of  the evaluate() function.  I've also tried accessing 
the node parameter directly, e.g.

<xsl:value-of select="$keywords//*"/>

where $keywords is the parameter passed from my java bit.

Please send more ideas...

Ta, Tim.

> > <xsl:variable name="keys" select="xalan:evaluate($keywords)"/>
> >
> > $keywords is the parameter containing the nodelist.
> 
> xalan:evaluate($keywords) expects $keywords to be a string containing 
an
> XPath expression, I've no idea what it does if the parameter is a 
NodeList -
> it probably converts the NodeList to a string, which I doubt is what 
you
> intended.
> 
> Mike Kay
> Software AG
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> 



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]