[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: Conditional XSL Variable
> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|