>as far as i know this is not possible with xpath, prove me wrong!
it works . use the XPath Extractor , specify your expression, add a  DEBUG
sampler and check in view results tree listener.  You will see multiple
values.

>"$ctx" gives me an error), and how can i push variables back into the
jmeter context.
In scripting languages like Beanshell / javascript use the vars object for
variables . i dont know how to this with XSL as your language . If its
possible , it would be possible only by using Java extensions.

regards
deepak

On Fri, Feb 11, 2011 at 11:02 AM, papa nagy <grossva...@gmail.com> wrote:

> thx for replying soon,
>
> i want to extract MULTIPLE id-s from one sample and want to build a string
> for use in consequent samplers(i=23423&i=134324&i=32543...).
>
> as far as i know this is not possible with xpath, prove me wrong!
>
> yes i want to ask in the general, how can I read the input variables (using
> "$ctx" gives me an error), and how can i push variables back into the
> jmeter
> context.
>
> maybee i should look to do it with javascript+DOM or XSL, but i find it too
> hard programming inside jmeter! if somebody knows how to use this stuff i
> would prefer xslt becouse i consider it much simpler.
>
> On Fri, Feb 11, 2011 at 7:08 PM, Deepak Shetty <shet...@gmail.com> wrote:
>
> > hi
> > if all you want to do is select an id then use the XPATH extractor.
> >
> > If you want to ask this in the general case , then I believe you will
> have
> > to use a scripting language that can run an XSL transform and which can
> > also
> > interact with the JMeter variables instead of using xsl as the BSF
> > language.
> >
> > It might also be possible to use XSLT enhancements (which can call java
> > code), but Im not sure
> >
> > regards
> > deepak
> >
> > On Fri, Feb 11, 2011 at 8:38 AM, papa nagy <grossva...@gmail.com> wrote:
> >
> > > hi,
> > >
> > > I am trying to use the BSF PostProcessor with a basic XSLT Script! it
> > runs
> > > without errors but I dont know how to read sample data nor to ouput
> > > something in a variable.
> > >
> > > I found one exaple using this postprocessor with javascript
> > >
> > > http://www.havecomputerwillcode.com/blog/?p=500
> > >
> > > but cannot find code using xslt, maybee somebody used it before...
> > >
> > > this is my xslt, extracting id-attributes:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <xsl:stylesheet version="1.0" xmlns:xsl="
> > > http://www.w3.org/1999/XSL/Transform";  >
> > >
> > > <xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes"/>
> > >
> > > <xsl:template match="/">
> > > <xsl:value-of select="//*/@id"/>
> > > </xsl:template>
> > >
> > > </xsl:stylesheet>
> > >
> >
>

Reply via email to