View Single Post
  #1 (permalink)  
Old October 3rd, 2006, 12:21 PM
prithvi28 prithvi28 is offline
Registered User
Join Date: Sep 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default setting default values

   I am doing some xml-xml transformation.For some of the output elements, if the corresponding source element is null/does not exist I need to set the output to a constant(default value). Is there a way to set default value OR do I have to check if the node exists and if it exists check the length of the enclosed text for zero?

Actually I need to do this for multiple elements. I wanted to look into doing this using templates. Is this feasible with templates? My experience is limited to writing some templates for formatting data. I am eager to do this in the right way.