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']/type)"/>
<!-- 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.name}']/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]

Reply via email to