Page 1 of 1

Assigning XPath as ConLib property

Posted: Wed Dec 23, 2009 9:37 am
by nickc
Any suggestions for how to pass an XPath to a control using ConLib syntax? Use of "[]" characters is breaking nVelocity renderer.

Code: Select all

[[ConLib:UtilityControls/Profile LoadXPath="/sites/site[@id=\"name\"]" ]]

Re: Assigning XPath as ConLib property

Posted: Wed Dec 23, 2009 10:56 am
by mazhar
Hmm nick why don't you try something other then brackets to represent the bracket and then update your LoadXPath property to first replace brackets with new character you selected for masking. For example let's say in our dictionary we call + sign a bracket. Then when passing in the XPath replace all brackets with + signs. Now update the get part of your LoadXPath path to replace + with [ when returning XPath for usage. May be it helps