Re: [Servingxml-help] <sx:replace>
Brought to you by:
danielaparker
From: Daniel P. <dan...@sy...> - 2007-03-28 01:25:38
|
Write it like this (without the field attribute) <sx:fieldElementMap element=3D"SomeField">=20 <sx:replace searchFor=3D"^0*" replaceWith =3D""> <sx:toString value=3D"{SomeField}"/> </sx:replace> </sx:fieldElementMap> The field attribute takes precedence over the content, and specifies a = mapping from the field to the element. Daniel ----- Original Message -----=20 From: Ravikumar Tadysetty=20 To: ser...@li...=20 Sent: Tuesday, March 27, 2007 6:10 PM Subject: [Servingxml-help] <sx:replace> 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.=20 The following removes the leading zeros: <sx:elementMap element=3D"somefield"> <sx:replace searchFor=3D"^0*" replaceWith =3D""> <sx:toString value=3D"{somefield}"/>=20 </sx:replace> </sx:elementMap> The following is not removing the leading zeros: <sx:fieldElementMap field=3D"somefield" element=3D"SomeField">=20 <sx:replace searchFor=3D"^0*" replaceWith =3D""> <sx:toString value=3D"{SomeField}"/> </sx:replace> </sx:elementMap> Thanks Ravi -------------------------------------------------------------------------= ----- = -------------------------------------------------------------------------= Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to = share your opinions on IT & business topics through brief surveys-and earn cash = http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV -------------------------------------------------------------------------= ----- _______________________________________________ Servingxml-help mailing list Ser...@li... https://lists.sourceforge.net/lists/listinfo/servingxml-help |