SimpleDateFormat and Date:new how can I simply report a date in the future? XSLT, XML1.0, Java

后端 未结 2 2033
無奈伤痛
無奈伤痛 2021-01-24 01:08

I need to add 90 days to the current date populated in the 2nd half of this code. I\'ve attached the resulting XML below (using xml1.0 and xalan 2.7.1), it looks great i just ne

2条回答
  •  天命终不由人
    2021-01-24 02:08

    I see you are trying to do this with Java extensions. I don't know if and how this can work, but I can suggest a purely (almost) XSLT 1.0 solution. The following stylesheet:

    XSLT 1.0

    
    
    
    
    
    
        
            
                
            
            
                
                    
                
            
        
     
    
    
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
         
    
    
    

    when applied to any XML input (on Dec 11, 2014), returns:

    
    
       12-11-2014
       03-11-2015
    
    

提交回复
热议问题