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

error in variable statement

Subject: error in variable statement
From: Mario Madunic <hajduk@xxxxxxxx>
Date: Wed, 14 Feb 2007 16:16:16 -0800
 error in variable statement
I just switched to saxon 8.9 from 8.6(?)sorry deleted it before i checked

my variable statement used to read

<xsl:variable name="g_PubDate" select="if (string-length(//pubdate) &gt; 0) then
//pubdate else $g_Unknown" />

This now throws an error. So some quick reading and I changed the statement to 

<xsl:variable name="g_PubDate" select="if (string-length(//pubdate) gt 0) then
//pubdate else $g_Unknown" /> 

basically removing the ampersand and semi-colon but I still receive the same
error msg

here is a copy of the error msg

     [xslt] : Error! Syntax error in 'if (string-length(//pubdate) gt 0) then
//pubdate else $g_Unknown'.
     [xslt] : Error! file:/C:/RBI/isoTest/templates/globals/g_Globals.xsl: line
43: Error parsing XPath expression 'if (string-length(//pubdate) gt 0) then
//pubdate else $g_Unknown'.
     [xslt] : Error! file:/C:/RBI/isoTest/templates/globals/g_Globals.xsl: line
43: Required attribute 'select' is missing.

stumped and don't quite know what is wrong. working before i switched to 8.9.

Any help would be greatly appreciated.

Mario

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.