[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#523671: qa.debian.org: wrong policy version



+ Raphael Hertzog (Sun, 12 Apr 2009 11:29:35 +0200):

Hello,

> On Sat, 11 Apr 2009, Adeodato Simó wrote:
> > The PTS should enhance the check to do, if possible, a version

> We lack the version comparison code in XSLT unfortunately. So it's not
> feasible right now.

> It's a simple string comparison and we rely on having the latest version
> in the stylesheet.

When you say, a “string comparison”, you mean a comparison for equality,
I guess. Does XSLT offer at all the concept of strcmp()? I think that
alone would be preferable if it’s not a full-fledged version comparison
check: the Policy version numbers are simple enough that it should work,
and it can be deactivated if this statement stops being true at some
point in the future.

Only, I don’t know if strcmp() is available or not. :-)

-- 
- Are you sure we're good?
- Always.
        -- Rory and Lorelai




Reply to: