xsl-list
[Top] [All Lists]

[xsl] How to select specific nodes using xsl:template match or similar?

2007-06-11 09:55:26

Hi,

Here's is a snippet of an XML I have:



  
    
    
    
    
  
  
    
    
  
  
    
    
    
    
  


My objective is to choose all first-level data nodes (i.e, nodes with names 
20050102, 20050103 & 20050104 above) within a specified range of dates. In 
other words, what is the best way to, say, choose only the nodes whose 
name-value is between 20050102 and 20050103 (both inclusive). I want to be able 
to choose such nodes at the top-level WITHOUT using a for-each loop. That is, I 
don't want to do something like this because here I am running through all 
nodes that meet my condition as opposed to just selecting all such nodes in one 
query:

  20050102
  20050103
  
    
      
      
        
      
    


Hope I am clear. Any help/idea is much appreciated.

Thanks,
Bhaskar

_________________________________________________________________
Catch the cricket action with MSN!
http://content.msn.co.in/Sports/Cricket/Default.aspx
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--