Blog Archive

Monday, July 10, 2017

Creating target structure as reference to target xsd and source xml file

Om


Creating target structure as reference to target xsd and source xml file

condition on temp 
generate required  values by using if condition.



checking null and empty string.
  • Contains no child nodes: not(node())
  • Contains no text content: not(string(.))
  • Contains no text other than whitespace: not(normalize-space(.))
  • Contains nothing except comments: not(node()[not(self::comment())])
  •  
  •  test="USER/FIRSTNAME">
        USERNAME is not null
    
     test="not(USER/FIRSTNAME)">
        USERNAME is null
     
      test="USER/FIRSTNAME=''">
         USERNAME is empty string
     
      test="USER/FIRSTNAME!=''">
         USERNAME is not empty string
     
     

No comments:

Post a Comment