![]() |
Data Source Drag and Drop |
Post Reply
|
| Author | |
Simon
Newbie
Joined: 18 Oct 2011 Posts: 2 |
Post Options
Quote Reply
Topic: Data Source Drag and DropPosted: 09 Dec 2011 at 3:28pm |
|
Hello,
I have a question regarding the XPATH expression generated when doing a drag and drop from the Data Source container. Is there a way to customize the XPATH expression generated? Currently, we have a tree that is of the form: <page> <question name="a" /> <answer /> </page> <page> <question name="b" /> <answer /> </page> ... When we drag and drop a question node, we get a reference to /page/question, however, we would like it to be /page/question[@name="a"]. Is there a way to configure the behaviour we desire? Or any other suggestions (other than editing the XSL-FO code itself)? Thanks for the help! Simon
|
|
![]() |
|
radup
Admin Group
Adminstrator Joined: 19 May 2008 Posts: 83 |
Post Options
Quote Reply
Posted: 12 Dec 2011 at 7:04am |
|
Hi Simon,
You just need to double-click on field and the following will appear http://www.ecrion.com/Temp/HelpCache/XFDesigner/framed_hidd_dialog_xpath_edit.htm. In "Expression" textbox you can customize your XPath. Regards, Radu |
|
![]() |
|
Simon
Newbie
Joined: 18 Oct 2011 Posts: 2 |
Post Options
Quote Reply
Posted: 12 Dec 2011 at 8:37am |
|
Thanks for the response Radu.
I am aware of the edit expression capability, however I'm interested in knowing if there's a way to override the default expression generated when doing a drag and drop. If I'm dropping 100 text fields into my template, requiring editing for each XPATH node is quite time consuming. Thanks again, Simon
|
|
![]() |
|
radup
Admin Group
Adminstrator Joined: 19 May 2008 Posts: 83 |
Post Options
Quote Reply
Posted: 12 Dec 2011 at 8:52am |
|
Unfortunately there's no way to override the default behavior. But you can go to XML view and use search & replace dialog.
Thank you, Radu
|
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |