[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSLT Lint 0.1

Subject: Re: XSLT Lint 0.1
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 15 Feb 2011 11:51:39 +0000
Re:  XSLT Lint 0.1
On 15/02/2011 11:43, Andriy Gerasika wrote:
On 02/14/2011 06:20 PM, Michael Kay wrote:
But I think FindBugs does some quite deep semantic analysis before
making its suggestions.

I will split "xsl:variable/xsl:value-of" rule in two:
"xsl:variable/xsl:value-of (safe)" will use Saxon API to check type of XPath expression
"xsl:variable/xsl:value-of (not safe)" will refactor all cases of xsl:variable/xsl:value-of, assuming human will choose correct refactorings in file/compare tool

For this refactoring the key information needed to make it safe is not the type of the expression bound to the variable, but the way in which the variable is used, which can be analyzed using Saxon's expression tree - but it's by no means easy.

Michael Kay

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.