|
|
Rank: Newbie
Joined: 11/2/2009 Posts: 3
|
I am trying to use the substring function, but it doesn't seem to work at all.
I have an string element "abc 123" and want to use only the first part "abc". I have tried to right-click on the element and then edited the X-path filter. Tried the expression "substring(.,3)", but nothing happens.
I have also tried to enclose the element with a condition that containts the same expression as above, but still no result.
What am I doing wrong?
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
Well, unfortunately, you have tried the wrong things. XPath filter does not modify content - it allows you to filter out some of the elements. A condition is usually used in order to choose different design for the same content.
What you can choose is either replace (contents) with an auto-calc. Or with v2010 you can also use "Edit Template Match"
P.S. such questions can easily by answered by reading Help or opening sample files.
|
|
Rank: Newbie
Joined: 11/2/2009 Posts: 3
|
Thank you, Vlad!
You saved me quite som head ache...
|
|
|
guest |