[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: get the max-value
Oops!!
I had not seen that you have many Characteristic elements. I thought you only had one of them. Let me guess: //Data/Characteristic/Value[not(//Data/Characteristic/Value > .)] I think this should work (maybe with number() as in my wrong post). Try to avoid the // if you can specify the right path to your Data element. There may exist a more optimal Xpath for the comparison inside the not(). However, I am not a specialist in XSLT optimization. AFAIR, cost of this approach should be n². You may be able to get it in n.log(n) by restricting that Xpath expression. Antonio Pfitzner, Jan wrote: Hi, I want to get the maximum value in my xml-file. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|