XSLT StyleSheet XML

File: Data.xml


   
      title 1
      author 1
      publisher 1
      1-11-11111-1
      6.99
      235
   

   
      title 2
      author 2
      publisher 2
      0 14 018967 X
      12.99
      12
   


File: Transform.xslt

  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  exclude-result-prefixes="xs" version="2.0">
  
    
          as="xs:double" />
          as="xs:double" />
    
      
        
                      select="remove($nodes, 1)" />
                      select="if (number($nodes[1]) lt $min-so-far) 
                                  then $nodes[1]
                                  else $min-so-far" />
                      select="if (number($nodes[1]) gt $max-so-far) 
                                  then $nodes[1]
                                  else $max-so-far" />
        
      
      
        
          
            
          

          
            
          

        

      

    

  
  
    
      
                  select="/booklist/book/price" />
      
    

  

Output:
6.9912.99