[Servingxml-help] <sx:replace>
Brought to you by:
danielaparker
From: Ravikumar T. <ra...@gm...> - 2007-03-27 22:10:26
|
Hi I am trying to use <sx:replace> within <sx:fieldElementMap>. But it doesnot seem to be evaluated. However it does work within <sx:elementMap>. Please let me know if this is expected behavior or if there is a workaround. The following removes the leading zeros: <sx:elementMap element="somefield"> <sx:replace searchFor="^0*" replaceWith =""> <sx:toString value="{somefield}"/> </sx:replace> </sx:elementMap> The following is not removing the leading zeros: <sx:fieldElementMap field="somefield" element="SomeField"> <sx:replace searchFor="^0*" replaceWith =""> <sx:toString value="{SomeField}"/> </sx:replace> </sx:elementMap> Thanks Ravi |