|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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) > 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
|
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
|






