Dear Hussein,

I'm stuck with the following problem. Let's say there is a document containing 
elements following this pattern:

<book id="a1234" title="Pride and Prejudice"/>

I'd like to create a macro that would provide the user with a list of all 
titles present in a document and return the id corresponding to the title they 
select.

It is easy to create a list of all id's in the document and use that list as 
arguments to the pick command:

<get expression="join(//book/@id, ' ' )"/>
<command name="pick" parameter="'Select a title'  false  %_"/>

but a list of id's is of course meaningless to any user. Is it possible then to 
*dynamically* create a list that would contain both items (id) and labels 
(title) and be suitable for the pick command, given the built-in implementation 
of XPath and the available macro commands?

Any hint will be appreciated.

Best wishes,

Mariusz Idzikowski

 
 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20091215/5c3d32bb/attachment.htm
 

Reply via email to