I would like this kind of thing to work:
content: combo-box(attribute, idref, values, xpath("//account/@id") )
i.e. to present a list of id values possibly restricted to a particular
element type for the purpose of setting the value of a cross-reference
attribute.
Currently the result of the xpath gets converted to a string which means
you only get the value of the first node.
Possible approaches, in order of preference (based on usefullness for
doing other things):
1. Extend the type system used in the CSS code and combo-box etc to
understand node sets
2. Implement XPath 2.0 which would allow the required \A separated
string to be constructed
3. Somehow mark a target element and then have a command which inserts
the ID value from a previously marked element (not far away from the
copy & paste that I am currently doing).
I know about the ID picker in the attribute editor but my document type
has *lots* of elements with IDs on - it really needs to be filtered by
element type to be useful. It would also be useful to be able to have
labels other than the actual ID value.
I also know I could probably construct this by hacking some Java, but it
seems to me this should be a more generic feature. Maybe somebody has
already written such a beast, or would contribute towards me doing so?
Best regards,
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