Hi Sean,
A little misunderstanding:
${file} is my original variable
${file.name} is the 'name' property of ${file}, which works fine in
non-expath situation.
Thanks anyway.
-wil-
-----Oorspronkelijk bericht-----
Van: W. Sean Hennessy [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 6 mei 2004 17:18
Aan: 'Maven Users List'
Onderwerp: RE: jelly:xml question
eliminate the dot from the variable name
"$file-name" instead of "$file.name"?
-----Original Message-----
From: Wim Lambrecht [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 12:51 AM
To: [EMAIL PROTECTED]
Subject: Re: jelly:xml question
Sorry,
The second <!-- OK --> should be <!-- NOT OK --> of course. Problem
stays the same ....
-wil-
> Hi,
>
> I want to use the <x:set> tag, but i have a problem with the select=
> part, more specifically when i want to use a string-variable there.
>
> 1) When i hard-code my xpath-expression, everything works fine
> ($reconfigdoc is a DOM object constructed via the <x:parse>-tag. No
> problem there since i get the desired result in the statement below)
>
> <x:set var="hardcodetype"
> select="string($reconfigdoc/deployment-profile/[EMAIL PROTECTED]'0100']/ty
> pe)"/>
> <!-- OK -->
>
> 2) When i want to pass an earlier made variable, i.c. $file.name
> (which is something like "file1.properties") in the select part, the
> xpath evaluation returns nothing. And file.name actually has a value.
>
> <x:set var="hardcodetype"
> select="string($reconfigdoc/deployment-profile/[EMAIL PROTECTED]'${file.na
> me}']/type)"/>
> <!-- OK -->
>
> BTW the 'select' attribuut expects an Object of type org.jaxen.XPath,
> althought all examples i've found so far just pass a String to it. (or
> is conversion handled by the taglib ?)
>
> Thanks for any help.
>
> -wil-
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]