Brilliant Hussein, that will do very nicely.
Suggestion: add a cross reference to the xpath extensions in the xpath
description itself (doc\csssupport\xpath.html) where currently you just
say you implement xpath 1? I did look at the commands document but
didn't quite make it to chapter 7.
Hussein Shafie wrote:
>
> --> This should work fine:
>
> content: combo-box(attribute, idref,
> values, xpath("join(//account/@id, '\A')") );
>
> The join() XPath extension function is documented here:
> http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpathextfunc.html
>
> The problem with the above combo-box is that the "values" argument is
> evaluated just once when the element which is the target of the CSS
> rule is created.
>
In this instance I can live with that as the ids in question are
relatively stable - but I will bear the alternative in mind.
Thanks again,
Trevor Nash
--
Melvaig Software Engineering Limited
voice: +44 (0) 1445 771363
email: tcn at melvaig.co.uk web: http://www.melvaig.co.uk
Registered in Scotland No 194737
5 Melvaig, Gairloch, Ross-shire IV21 2EA