[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Avoiding boneheaded mistakes in XSLT?


Subject: Re: [xsl] Avoiding boneheaded mistakes in XSLT?
From: Michel Hendriksen <michel.hendriksen@xxxxxxxxx>
Date: Thu, 30 Dec 2010 09:56:56 +0100

Lol I was thinking in the same direction.

You could make a stylesheet were you put in your common misstakes to
check the stylesheet you are working on at the moment. These would be
like tests on node iso node() etc (like in some other programming
languages a = 1 iso a== 1).

On Thu, Dec 30, 2010 at 8:04 AM, Andriy Gerasika
<andriy.gerasika@xxxxxxxxx> wrote:
> On 12/29/2010 12:35 AM, David Sewell wrote:
>>
>> 1. In an XPath expression, using "something/node" where I wanted
>> "something/node()" [ditto text vs. text()]: always means zero results and
>> can drive you crazy if you don't notice the missing parentheses;
>
> IDE should highlight functions inside XPath, for example in bold
>
> right now, Eclipse for example does not, and it supports XPath 1.0 only
>
>> Has anyone come up with a useful list of "things to check any time my
>> code is not working the way it should"?
>
> FindBugs.xslt checking XSLT would help, something similar to already
> existing FindBugs in Java world


Current Thread
Keywords