xsl-list
[Top] [All Lists]

[xsl] error in variable statement

2007-02-14 17:16:40
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--