xsl-list
[Top] [All Lists]

Re: [xsl] XSLT Lint 0.1

2011-02-15 05:51:48
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
Saxonica

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>