[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT Lint 0.1
Perhaps is there some API in Saxon that would tell if XPath is likely to produce single-value or sequence? Yes, Saxon does extensive static type inferencing, and the types of every expression are available by navigating the expression tree at the end of compilation. (It doesn't give you all the information you would wish for, however: for example there is no data flow analysis, and no linkage from a variable binding to all uses of that variable.)
But I think FindBugs does some quite deep semantic analysis before making its suggestions. Michael Kay Saxonica
|
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
|