Re: [xsl] Re: Conditional XSL Variable

Subject: Re: [xsl] Re: Conditional XSL Variable
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 21 Nov 2008 09:00:57 +0000
> Just one thing... while doing my own research, I came across some
> sites that mentioned that as of XPath 2.0, one can use "if"
> conditionals in XPath expressions. However, when trying to use it in
> oXygen, the IDE didn't offer auto-completion because it didn't
> recognise "if" as a legal XPath expression, even though I had
> specified version="2.0" on my xsl:stylesheet declaration...
>
> I thought that perhaps it is not possible to use XPath "if"
> expressions inside XSLT 2.0 (since XSLT provides its own mechanisms
> for conditionals), but it might as well just be a bug of the IDE...
> Any thoughts on this?

Check what's set in your options for XSLT 2.0 validation options ->
preferences -> xslt -> engines used for XSLT validation.

oXygen 10 defaults to Saxon 9.1.0.3 so it shouldn't complain about the
if expression, but I'm not sure you'll get code completion for it.

The other way is to use "configure validation scenario" (wrench with a
red tick) to tell oXygen which processor to check the syntax with -
you can set more than one so its a good way to check your code is
portable across processors (static errors anyway)



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread