Marc wrote: > I'm beginning to do macros with xxe. > The first one that I try to do is perhaps not really simple, but ... > I want to open when the user insert a node a list of node/attribute from an > other file. > It's something like in HTML if when the user insert a <A> I want to propose > to choice the file and with <A name="??"> he wants. > I find how to select a file with "selectFile", opens it with "XXE.open", how > to propose a choice with "pick", but I don't find how to run an Xpath on an > other file. > I'm not sure it's possible without to do a Java classe, is it?
Not sure to understand. A macro is executed in the context of currently edited document and will not switch to the document opened using XXE.open. However you may try to evaluate this kind of XPath expression in the context of currently edited document: document(URL_of_doc_to_be_opened)/XXX/YYY. The document() is a standard XSLT function implemented by XXE. See http://www.w3.org/TR/xslt#document

