[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: Conditional XSL Variable

Subject: Re: Re: Conditional XSL Variable
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 21 Nov 2008 09:00:57 +0000
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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.