2 Replies Latest reply: Nov 20, 2012 5:40 PM by vladodias RSS

    function inside function is not working in xlst

    Pavan Gudipalli
      Hi,

      fn:format-number(Xpath,'format type')

      <xsl:value-of select='format-number(/ns0:SyncItemList/ns0:DataArea/ns0:ItemMaster/ns0:Item/ns0:ItemSpecificationGroup/ns0:SpecificationGroup[oa:Name = "PTC_LABEL_INFORMATION"]/ns0:Specification[oa:Name = "LABEL_WEIGHT"]/oa:ValueText,"#.0000")'/>

      while writing onemore function inside function, its not working:

      fn:replace(string,pattern,replace)

      <xsl:value-of select='replace(format-number(/ns0:SyncItemList/ns0:DataArea/ns0:ItemMaster/ns0:Item/ns0:ItemSpecificationGroup/ns0:SpecificationGroup[oa:Name = "PTC_LABEL_INFORMATION"]/ns0:Specification[oa:Name = "LABEL_WEIGHT"]/oa:ValueText,"#.0000"), ".","")'/>

      help me to work out.

      Edited by: Pavan Gudipalli on Nov 19, 2012 11:08 PM